diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2020-12-18 23:39:33 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2020-12-18 23:39:33 +0000 |
commit | 4f102b2c19f69c73fcd0aefb35f8613cf0f97117 (patch) | |
tree | c7dfa901616efdf03498b9cc02ddc09b2db59b23 | |
parent | ca8d2c96ea09cb33ff6fef33c0314c24fc6a026a (diff) | |
download | s6-linux-init-4f102b2c19f69c73fcd0aefb35f8613cf0f97117.tar.xz |
configure fix
-rwxr-xr-x | configure | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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` |