Add support for non-GNU ld

This commit is contained in:
papadave 2018-01-08 16:59:51 +08:00
parent a85553ad67
commit 65c4a823cd

8
configure vendored
View File

@ -34,6 +34,10 @@ issolaris() {
[ "`uname -s`" = SunOS ] [ "`uname -s`" = SunOS ]
} }
isgunld() {
ld --version 2> /dev/null | grep -Fq GNU
}
check_compile() { check_compile() {
printf "checking %s ... " "$1" printf "checking %s ... " "$1"
printf "$3" > "$tmpc" printf "$3" > "$tmpc"
@ -180,6 +184,10 @@ elif isbsd ; then
make_cmd=gmake make_cmd=gmake
elif issolaris; then elif issolaris; then
echo "CFLAGS+=-DIS_SOLARIS -D__EXTENSIONS__" >> config.mak 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 fi
echo "Done, now run $make_cmd && $make_cmd install" echo "Done, now run $make_cmd && $make_cmd install"