Module Name: src
Committed By: christos
Date: Sun Apr 14 16:28:57 UTC 2013
Modified Files:
src/external/bsd/dhcp: Makefile.inc
Log Message:
Use -Wl,-B{static,dynamic}, using -Bstatic does not work because all the
flags arguments are passed to collect2 in front.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/dhcp/Makefile.inc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/dhcp/Makefile.inc
diff -u src/external/bsd/dhcp/Makefile.inc:1.3 src/external/bsd/dhcp/Makefile.inc:1.4
--- src/external/bsd/dhcp/Makefile.inc:1.3 Sun Mar 24 19:03:05 2013
+++ src/external/bsd/dhcp/Makefile.inc Sun Apr 14 12:28:57 2013
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.3 2013/03/24 23:03:05 christos Exp $
+# $NetBSD: Makefile.inc,v 1.4 2013/04/14 16:28:57 christos Exp $
WARNS?= 1 # XXX -Wshadow -Wcast-qual -Wsign-compare
@@ -32,12 +32,12 @@ CPPFLAGS+= -DLOCALSTATEDIR='"/var"'
LDADD+= ${COBJDIR}/libdhcp.a
LDADD+= ${OMOBJDIR}/libomapi.a ${DSTOBJDIR}/libdst.a
.if defined(PROG) && ${PROG} == "dhclient"
-LDADD+=--static
+LDADD+=-Wl,-Bstatic
.endif
LDADD+= -ldns -lisc
LDADD+=-lpthread
.if defined(PROG) && ${PROG} == "dhclient"
-LDADD+=--dynamic
+LDADD+=-Wl,-Bdynamic
.endif
LDADD+= -lcrypto -lipsec
DPADD+= ${COBJDIR}/libdhcp.a