Mercurial > hg > openttd
changeset 6230:d9b18ac4c028 draft
(svn r9033) [Config] -Fix: GNU strip has -s, but Solaris strip doesn't. Detect this when system is SUNOS.
author | truelight <truelight@openttd.org> |
---|---|
date | Tue, 06 Mar 2007 20:37:46 +0000 |
parents | a94c1dd65b46 |
children | a4e11dd2d7c6 |
files | config.lib |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/config.lib +++ b/config.lib @@ -496,6 +496,10 @@ strip_arg="" # OS2 uses strip via gcc, because it needs to be feed to emxbind 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 strip_arg="-s" fi