diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2020-12-18 23:25:18 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2020-12-18 23:25:18 +0000 |
commit | 9dd0495c9e71f03163a7d5d53e1782a2821a3c6e (patch) | |
tree | b823a056ea7940be3870377bf36e828d4512b2ef /configure | |
parent | 0f14f8a4b9b592e3e513788a15d3d16f48594ff6 (diff) | |
download | utmps-9dd0495c9e71f03163a7d5d53e1782a2821a3c6e.tar.gz utmps-9dd0495c9e71f03163a7d5d53e1782a2821a3c6e.tar.xz utmps-9dd0495c9e71f03163a7d5d53e1782a2821a3c6e.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 fcd5d2a..15f9516 100755 --- a/configure +++ b/configure @@ -372,13 +372,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) ; @@ -387,6 +380,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 |