From 4f102b2c19f69c73fcd0aefb35f8613cf0f97117 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 18 Dec 2020 23:39:33 +0000 Subject: configure fix --- configure | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/configure b/configure index 90999de..9004f70 100755 --- a/configure +++ b/configure @@ -385,13 +385,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) ; @@ -400,6 +393,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 + if $utmps ; then echo "Sanity checking cross-package configuration..." p=`getmacrostring utmps/config.h UTMPS_UTMPD_PATH` -- cgit v1.2.3