]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
4514. [port] NetBSD: strip -WL, from ld command line. [RT #43204]
authorMark Andrews <marka@isc.org>
Thu, 10 Nov 2016 00:31:21 +0000 (11:31 +1100)
committerMark Andrews <marka@isc.org>
Thu, 10 Nov 2016 00:31:21 +0000 (11:31 +1100)
CHANGES
bin/tests/system/dyndb/driver/Makefile.in
configure
configure.in

diff --git a/CHANGES b/CHANGES
index 1bde903a641691268af0dc1d1eb573fdd324b98d..cf5cfd871f9ea8e0208e77340be1ea9f41dd4167 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+4514.  [port]          NetBSD: strip -WL, from ld command line. [RT #43204]
+
 4513.  [cleanup]       Minimum Python versions are now 2.7 and 3.2.
                        [RT #43566]
 
index df1e3c00378d13e31ef95a314ef045582ca53314..2d116e8e498cb971a33dd1022ea0330c1aca76fd 100644 (file)
@@ -34,6 +34,7 @@ OBJS =                db.@O@ driver.@O@ instance.@O@ \
 
 SO_TARGETS =   lib/sample.@SO@
 TARGETS =      @SO_TARGETS@
+SO_STRIP =     @SO_STRIP@
 
 @BIND9_MAKE_RULES@
 
@@ -45,8 +46,9 @@ lib/sample.@SO@: sample.@SO@
        ${LIBTOOL_MODE_INSTALL} ${INSTALL} sample.@SO@ `pwd`/lib
 
 sample.@SO@: ${OBJS} ${DNSDEPLIBS} ${ISCDEPLIBS}
+       CLEANED=`echo "${DNSLIBS} ${ISCLIBS} @DNS_CRYPTO_LIBS@ ${LIBS}" | ${SO_STRIP}`; \
        ${LIBTOOL_MODE_LINK} @SO_LD@ ${SO_LDFLAGS} -o $@ ${OBJS} \
-               ${DNSLIBS} ${ISCLIBS} @DNS_CRYPTO_LIBS@ ${LIBS}
+               $${CLEANED}
 
 clean distclean::
        rm -f ${OBJS} sample.so lib/sample.so
index 8f5a08231ab9afedcbc50dc54a2c7abd89bf32e0..74e15d7b6c40f38bcdda1920fe0e23a2b9b5ef92 100755 (executable)
--- a/configure
+++ b/configure
@@ -654,6 +654,7 @@ DLZ_DRIVER_INCLUDES
 CONTRIB_DLZ
 PG_CONFIG
 SO_TARGETS
+SO_STRIP
 SO_LD
 SO_LDFLAGS
 SO_CFLAGS
@@ -22068,6 +22069,7 @@ SO_CFLAGS=""
 SO_LDFLAGS=""
 SO_LD=""
 SO_TARGETS=""
+SO_STRIP="cat"
 
 
 # Check whether --with-dlopen was given.
@@ -22179,6 +22181,7 @@ if test "yes" = "$dlopen"; then
                        SO_CFLAGS="-fpic"
                        SO_LDFLAGS="-Bshareable -x"
                        SO_LD="ld"
+                       SO_STRIP="sed -e s/-Wl,//g"
                        ;;
                *-solaris*)
                        SO_CFLAGS="-KPIC"
@@ -22226,6 +22229,7 @@ CFLAGS="$CFLAGS $SO_CFLAGS"
 
 
 
+
 # Copyright (C) 2005  Internet Systems Consortium, Inc. ("ISC")
 #
 # Permission to use, copy, modify, and distribute this software for any
index 20751d0e2b81b225be327fde189e2a9ed833e25e..5a4d0d2b900ea0a972dff4403bd0650a367a46be 100644 (file)
@@ -4811,6 +4811,7 @@ SO_CFLAGS=""
 SO_LDFLAGS=""
 SO_LD=""
 SO_TARGETS=""
+SO_STRIP="cat"
 
 AC_ARG_WITH(dlopen,
        [  --with-dlopen=ARG       support dynamically loadable DLZ drivers],
@@ -4863,6 +4864,7 @@ if test "yes" = "$dlopen"; then
                        SO_CFLAGS="-fpic"
                        SO_LDFLAGS="-Bshareable -x"
                        SO_LD="ld"
+                       SO_STRIP="sed -e s/-Wl,//g"
                        ;;
                *-solaris*)
                        SO_CFLAGS="-KPIC"
@@ -4907,6 +4909,7 @@ AC_SUBST(SO)
 AC_SUBST(SO_CFLAGS)
 AC_SUBST(SO_LDFLAGS)
 AC_SUBST(SO_LD)
+AC_SUBST(SO_STRIP)
 AC_SUBST(SO_TARGETS)
 
 sinclude(contrib/dlz/config.dlz.in)