summary refs log tree commit diff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-12-18 23:24:00 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-12-18 23:24:00 +0000
commit665f02b525042ca5bad73061c71dc94257e23f74 (patch)
tree9716453f1798abd28b16f92051235df972e11593
parenta2b04b9409544f0aa36ab94adcd3e7e834cbde88 (diff)
downloadnsss-665f02b525042ca5bad73061c71dc94257e23f74.tar.gz
nsss-665f02b525042ca5bad73061c71dc94257e23f74.tar.xz
nsss-665f02b525042ca5bad73061c71dc94257e23f74.zip
configure fix
-rwxr-xr-xconfigure14
1 files changed, 7 insertions, 7 deletions
diff --git a/configure b/configure
index 365404c..94a9c1f 100755
--- a/configure
+++ b/configure
@@ -358,13 +358,6 @@ fi
 
 LDFLAGS_SHARED="${LDFLAGS_SHARED}${addlibdpath}"
 
-if $allstatic ; then
-  LDFLAGS_NOSHARED="${LDFLAGS_NOSHARED}${addlibspath}"
-  tryldflag LDFLAGS_NOSHARED -Wl,--gc-sections
-else
-  LDFLAGS_NOSHARED="${LDFLAGS_NOSHARED}${addlibdpath}"
-fi
-
 if test -z "$vpaths" ; then
   while read dep ; do
     base=$(basename $dep) ;
@@ -373,6 +366,13 @@ if test -z "$vpaths" ; then
   done < package/deps-build  
 fi
 
+if $allstatic ; then
+  LDFLAGS_NOSHARED="${LDFLAGS_NOSHARED}${addlibspath}"
+  tryldflag LDFLAGS_NOSHARED -Wl,--gc-sections
+else
+  LDFLAGS_NOSHARED="${LDFLAGS_NOSHARED}${addlibdpath}"
+fi
+
 echo "Creating config.mak..."
 cmdline=$(quote "$0")
 for i ; do cmdline="$cmdline $(quote "$i")" ; done