From fd218a96b3fed5938d393c514313cd69e6e9f379 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 10 May 2001 20:19:50 +0000 Subject: [PATCH] Fixed to work on Solaris x86 --- strip_fPIC.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/strip_fPIC.sh b/strip_fPIC.sh index edd577646..007c94fb0 100755 --- a/strip_fPIC.sh +++ b/strip_fPIC.sh @@ -4,11 +4,14 @@ # This isn't always true (for example, nasm can't handle it) command="" while [ $# -gt 0 ]; do - if [ "$1" != "-fPIC" ]; then - if [ "$1" != "-DPIC" ]; then + case "$1" in + -?PIC) + # Ignore -fPIC and -DPIC options + ;; + *) command="$command $1" - fi - fi + ;; + esac shift done echo $command