Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/dhcp Use -Wl, -B{static, dynamic}, using -Bstatic...



details:   https://anonhg.NetBSD.org/src/rev/a400fc684934
branches:  trunk
changeset: 786084:a400fc684934
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Apr 14 16:28:57 2013 +0000

description:
Use -Wl,-B{static,dynamic}, using -Bstatic does not work because all the
flags arguments are passed to collect2 in front.

diffstat:

 external/bsd/dhcp/Makefile.inc |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r 98f9b831b91b -r a400fc684934 external/bsd/dhcp/Makefile.inc
--- a/external/bsd/dhcp/Makefile.inc    Sun Apr 14 16:07:46 2013 +0000
+++ b/external/bsd/dhcp/Makefile.inc    Sun Apr 14 16:28:57 2013 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index