summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-12-18 23:39:33 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-12-18 23:39:33 +0000
commit4f102b2c19f69c73fcd0aefb35f8613cf0f97117 (patch)
treec7dfa901616efdf03498b9cc02ddc09b2db59b23
parentca8d2c96ea09cb33ff6fef33c0314c24fc6a026a (diff)
downloads6-linux-init-4f102b2c19f69c73fcd0aefb35f8613cf0f97117.tar.xz
configure fix
-rwxr-xr-xconfigure14
1 files changed, 7 insertions, 7 deletions
diff --git a/configure b/configure
index 90999de..9004f70 100755
--- a/configure
+++ b/configure
@@ -385,13 +385,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) ;
@@ -400,6 +393,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
+
if $utmps ; then
echo "Sanity checking cross-package configuration..."
p=`getmacrostring utmps/config.h UTMPS_UTMPD_PATH`