diff options
author | truelight <truelight@openttd.org> | 2007-03-06 20:37:46 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-03-06 20:37:46 +0000 |
commit | 5bb9aed844e4c37f9c7bcb01772c409289c2ef86 (patch) | |
tree | c1291d04ce0a5ef6e0a22113d29c9d1c07081b67 | |
parent | 1c7df202c649b4dad5fe5e5f53fb33191a440724 (diff) | |
download | openttd-5bb9aed844e4c37f9c7bcb01772c409289c2ef86.tar.xz |
(svn r9033) [Config] -Fix: GNU strip has -s, but Solaris strip doesn't. Detect this when system is SUNOS.
-rw-r--r-- | config.lib | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config.lib b/config.lib index 611330569..ee4c1ffe5 100644 --- a/config.lib +++ b/config.lib @@ -496,6 +496,10 @@ check_params() { 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 |