diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2020-12-18 23:31:22 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2020-12-18 23:31:22 +0000 |
commit | 7d4f117642a8c026cb708e48506694c6b8090f1e (patch) | |
tree | 889bf0f26e6e526c06d082d0b4716a8662a95e86 /configure | |
parent | 490e677058ee4443379f6b43d346c2aba02b09da (diff) | |
download | s6-7d4f117642a8c026cb708e48506694c6b8090f1e.tar.gz s6-7d4f117642a8c026cb708e48506694c6b8090f1e.tar.xz s6-7d4f117642a8c026cb708e48506694c6b8090f1e.zip |
configure fix
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/configure b/configure index d80c4e0..2c7faa9 100755 --- 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 |