From f982dc64bfa4c6c42652f30af4d1389ca8fbc3e9 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 18 Dec 2020 23:28:25 +0000 Subject: configure fix --- configure | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'configure') 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 -- cgit v1.3.1