diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2020-12-18 23:29:08 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2020-12-18 23:29:08 +0000 |
commit | 832bdea54468f4fd4384ae6fe1b467f0419a5e9e (patch) | |
tree | 4468ff2c45f738df9695bb15c0e4661229cef7c8 /configure | |
parent | 4b38c9d3ad00a7db73c2b323ce7c29e1146ba26e (diff) | |
download | pamela-832bdea54468f4fd4384ae6fe1b467f0419a5e9e.tar.gz pamela-832bdea54468f4fd4384ae6fe1b467f0419a5e9e.tar.xz pamela-832bdea54468f4fd4384ae6fe1b467f0419a5e9e.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 6dddfc4..2647491 100755 --- a/configure +++ b/configure @@ -357,13 +357,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) ; @@ -372,6 +365,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 |