Source-Changes-HG archive

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

[src/trunk]: src/external/mpl/dhcp Explain the -Bstatic -Bdynamic dance.



details:   https://anonhg.NetBSD.org/src/rev/1c04e1ad43af
branches:  trunk
changeset: 323611:1c04e1ad43af
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jun 22 20:48:43 2018 +0000

description:
Explain the -Bstatic -Bdynamic dance.

diffstat:

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

diffs (20 lines):

diff -r e94e590f8fb2 -r 1c04e1ad43af external/mpl/dhcp/Makefile.inc
--- a/external/mpl/dhcp/Makefile.inc    Fri Jun 22 19:41:40 2018 +0000
+++ b/external/mpl/dhcp/Makefile.inc    Fri Jun 22 20:48:43 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.2 2018/06/21 11:02:48 kamil Exp $
+# $NetBSD: Makefile.inc,v 1.3 2018/06/22 20:48:43 christos Exp $
 
 WARNS?=        1       # XXX -Wshadow -Wcast-qual -Wsign-compare
 
@@ -31,6 +31,10 @@
 LDADD+= ${COBJDIR}/libdhcp.a
 LDADD+= ${OMOBJDIR}/libomapi.a
 .if defined(PROG) && ${PROG} == "dhclient" && ${MKSANITIZER:Uno} != "yes"
+# We link the libraries that are in /usr/lib and not in /lib statically
+# because dhclient is in /sbin and is needed before /usr is mounted in
+# some configurations with a split / and /usr. Another way to fix this,
+# would be to install the libraries in /lib...
 LDADD+=-Wl,-Bstatic
 .endif
 LDADD+= -lirs -lisccfg -ldns -lisc



Home | Main Index | Thread Index | Old Index