about summary refs log tree commit diff
path: root/configure
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-12-18 23:31:22 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-12-18 23:31:22 +0000
commit7d4f117642a8c026cb708e48506694c6b8090f1e (patch)
tree889bf0f26e6e526c06d082d0b4716a8662a95e86 /configure
parent490e677058ee4443379f6b43d346c2aba02b09da (diff)
downloads6-7d4f117642a8c026cb708e48506694c6b8090f1e.tar.gz
s6-7d4f117642a8c026cb708e48506694c6b8090f1e.tar.xz
s6-7d4f117642a8c026cb708e48506694c6b8090f1e.zip
configure fix
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 7 insertions, 7 deletions
diff --git a/configure b/configure
index d80c4e0..2c7faa9 100755
--- a/configure
+++ b/configure
@@ -365,13 +365,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) ;
@@ -380,6 +373,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