commit 7d4f117642a8c026cb708e48506694c6b8090f1e parent 490e677058ee4443379f6b43d346c2aba02b09da Author: Laurent Bercot <ska-skaware@skarnet.org> Date: Fri, 18 Dec 2020 23:31:22 +0000 configure fix Diffstat:
M | configure | | | 14 | +++++++------- |
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/configure b/configure @@ -365,13 +365,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) ; @@ -380,6 +373,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