mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
(svn r9033) [Config] -Fix: GNU strip has -s, but Solaris strip doesn't. Detect this when system is SUNOS.
This commit is contained in:
parent
1c7df202c6
commit
5bb9aed844
@ -496,6 +496,10 @@ check_params() {
|
|||||||
strip_arg=""
|
strip_arg=""
|
||||||
# OS2 uses strip via gcc, because it needs to be feed to emxbind
|
# OS2 uses strip via gcc, because it needs to be feed to emxbind
|
||||||
LDFLAGS="$LDFLAGS -s"
|
LDFLAGS="$LDFLAGS -s"
|
||||||
|
elif [ "$os" = "SUNOS" ]; then
|
||||||
|
# The GNU strip does know -s, the non-GNU doesn't
|
||||||
|
# So try to detect it (in a bit of an ugly way)
|
||||||
|
strip_arg="`$strip -s strip.test 2>/dev/null && echo \"-s\"`"
|
||||||
else
|
else
|
||||||
strip_arg="-s"
|
strip_arg="-s"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user