summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-12-18 23:35:43 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-12-18 23:35:43 +0000
commit9e82df990cc70cdc123c531061204d9f1442c42b (patch)
treec4773a0855d76bfefca7ec2bb3f15c57ebfde629 /configure
parent7ed3fb46886941a50e85e093699e084b9c9fa875 (diff)
downloads6-dns-9e82df990cc70cdc123c531061204d9f1442c42b.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 bd5fbf2..3553f10 100755
--- a/configure
+++ b/configure
@@ -357,13 +357,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) ;
@@ -372,6 +365,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