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:43:23 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-12-18 23:43:23 +0000
commit6eb85b2695582877855d2f1d034bcc75f399e3b5 (patch)
tree011166d46a067ac1716ce4e59c2e2e9b86487016 /configure
parent2c2a03c8fb09fdd59ff0e1a2dfdd580d440b4ad6 (diff)
downloads6-rc-6eb85b2695582877855d2f1d034bcc75f399e3b5.tar.gz
s6-rc-6eb85b2695582877855d2f1d034bcc75f399e3b5.tar.xz
s6-rc-6eb85b2695582877855d2f1d034bcc75f399e3b5.zip
configure fix
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 7 insertions, 7 deletions
diff --git a/configure b/configure
index 51ba8a2..8d5e542 100755
--- a/configure
+++ b/configure
@@ -360,13 +360,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) ;
@@ -375,6 +368,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