summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-12-18 23:27:11 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-12-18 23:27:11 +0000
commite669c586aff775df4e9d8b6cceeed42bc9b55655 (patch)
treebb3d3c40e0d70b3a964a566b5184c17438e6ed83 /configure
parenta5e07eeb589c22e3c87e55a2a3e4267976429ff2 (diff)
downloadexecline-e669c586aff775df4e9d8b6cceeed42bc9b55655.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 ed8ba6c..9050aa8 100755
--- a/configure
+++ b/configure
@@ -373,13 +373,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) ;
@@ -388,6 +381,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