From 65c4a823cd7251a07efa7da5cc468a47959c8467 Mon Sep 17 00:00:00 2001 From: papadave Date: Mon, 8 Jan 2018 16:59:51 +0800 Subject: [PATCH] Add support for non-GNU ld --- configure | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure b/configure index 575aaa6..917a4e9 100755 --- a/configure +++ b/configure @@ -34,6 +34,10 @@ issolaris() { [ "`uname -s`" = SunOS ] } +isgunld() { + ld --version 2> /dev/null | grep -Fq GNU +} + check_compile() { printf "checking %s ... " "$1" printf "$3" > "$tmpc" @@ -180,6 +184,10 @@ elif isbsd ; then make_cmd=gmake elif issolaris; then echo "CFLAGS+=-DIS_SOLARIS -D__EXTENSIONS__" >> config.mak + if ! isgunld; then + echo "NO_AS_NEEDED=" >> config.mak + echo "LD_SET_SONAME=-Wl,-h," >> config.mak + fi fi echo "Done, now run $make_cmd && $make_cmd install"