summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-12-18 23:26:04 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-12-18 23:26:04 +0000
commita0f8dc35bbffe16dcb9497d0e1e58d4143edfdcf (patch)
tree82497e1978ec15ccfa9e3bc1117456b9ea7e7320 /configure
parentf5161545d4b9c165e2e60b408c84917fa2df9272 (diff)
downloadbcnm-a0f8dc35bbffe16dcb9497d0e1e58d4143edfdcf.tar.xz
configure fix
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 7 insertions, 7 deletions
diff --git a/configure b/configure
index dfb0e8c..64af85d 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