summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-12-18 23:28:25 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-12-18 23:28:25 +0000
commitf982dc64bfa4c6c42652f30af4d1389ca8fbc3e9 (patch)
tree529be00384d955b8db737d682719743f02e4544b /configure
parent80be37e380f4cb8fb997de8a77a0cf56b2c5537f (diff)
downloadmdevd-f982dc64bfa4c6c42652f30af4d1389ca8fbc3e9.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 aa3f723..c7f25bd 100755
--- a/configure
+++ b/configure
@@ -361,13 +361,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) ;
@@ -376,6 +369,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