openbsd-ports/net/ns/patches/patch-Makefile_in

61 lines
1.6 KiB
Plaintext
Raw Normal View History

2012-04-28 14:07:56 -04:00
$OpenBSD: patch-Makefile_in,v 1.4 2012/04/28 18:07:57 stu Exp $
--- Makefile.in.orig Sun Oct 23 12:29:54 2011
+++ Makefile.in Wed Apr 25 11:16:44 2012
@@ -82,7 +82,7 @@ LIB = \
-lm @LIBS@
2001-03-17 10:39:25 -05:00
# -L@libdir@ \
2007-10-24 11:01:09 -04:00
-CFLAGS += $(CCOPT) $(DEFINE)
+CFLAGS += $(CCOPT) @CFLAGS@ $(DEFINE)
2001-03-17 10:39:25 -05:00
# Explicitly define compilation rules since SunOS 4's make doesn't like gcc.
# Also, gcc does not remove the .o before forking 'as', which can be a
2012-04-28 14:07:56 -04:00
@@ -405,33 +405,9 @@ all-recursive:
-ifeq ($(NSLIB),libns.dll)
-
-# This is for cygwin
-
-NS_CPPFLAGS = -DNSLIBNAME=\"$(NSLIB)\"
-NS_LIBS = @DL_LIBS@
-
-$(NSLIB): $(OBJ) common/tclAppInit.o
- $(LINK) -shared $(LDFLAGS) \
- $(LDOUT)$@ \
- -Wl,--export-all-symbols \
- -Wl,--enable-auto-import \
- -Wl,--out-implib=$@.a \
- -Wl,--whole-archive $^ \
- -Wl,--no-whole-archive @V_IMPORT_LIBS@
-
-$(NS): $(NSLIB) common/main-modular.cc
- $(LINK) $(NS_CPPFLAGS) $(LDFLAGS) $(LDOUT)$@ common/main-modular.cc $(NS_LIBS)
-
-else
-
-# default for all systems but cygwin
-
$(NS): $(OBJ) common/tclAppInit.o common/main-monolithic.o
- $(LINK) $(LDFLAGS) $(LDOUT)$@ $^ $(LIB)
+ $(LINK) $(LDFLAGS) $(LDOUT)$@ $> $(LIB)
-endif
@@ -441,10 +417,10 @@ Makefile: Makefile.in
false
$(NSE): $(OBJ) common/tclAppInit.o common/main-monolithic.o $(OBJ_EMULATE_CC) $(OBJ_EMULATE_C)
- $(LINK) $(LDFLAGS) $(LDOUT)$@ $^ $(LIB)
+ $(LINK) $(LDFLAGS) $(LDOUT)$@ $> $(LIB)
$(NSTK): $(OBJ) common/tkAppInit.o
- $(LINK) $(LDFLAGS) $(LDOUT)$@ $^ $(LIB)
+ $(LINK) $(LDFLAGS) $(LDOUT)$@ $> $(LIB)
ns.dyn: $(OBJ) common/tclAppInit.o common/main-monolithic.o
$(LINK) $(LDFLAGS) -o $@ $^ $(LIB)