diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2020-12-18 23:28:25 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2020-12-18 23:28:25 +0000 |
commit | f982dc64bfa4c6c42652f30af4d1389ca8fbc3e9 (patch) | |
tree | 529be00384d955b8db737d682719743f02e4544b | |
parent | 80be37e380f4cb8fb997de8a77a0cf56b2c5537f (diff) | |
download | mdevd-f982dc64bfa4c6c42652f30af4d1389ca8fbc3e9.tar.xz |
configure fix
-rwxr-xr-x | configure | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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 |