mirror of
https://github.com/rofl0r/proxychains-ng.git
synced 2024-11-14 11:28:49 +00:00
Add support for non-GNU ld
This commit is contained in:
parent
a85553ad67
commit
65c4a823cd
8
configure
vendored
8
configure
vendored
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user