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/c0170ac150ec
branches:  trunk
changeset: 320094:c0170ac150ec
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 6ce05e0c39e7 -r c0170ac150ec 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