From 62c107558f4215cd6018e44a2c228a8bbc4174b3 Mon Sep 17 00:00:00 2001 From: truelight Date: Tue, 6 Mar 2007 20:37:46 +0000 Subject: [PATCH] (svn r9033) [Config] -Fix: GNU strip has -s, but Solaris strip doesn't. Detect this when system is SUNOS. --- config.lib | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.lib b/config.lib index 611330569b..ee4c1ffe51 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