# HG changeset patch # User Sam Lantinga # Date 989525990 0 # Node ID 48c34d68918ee814a1658bbc368591974e870b31 # Parent 75a95f82bc1fa9e4f0158227094d1d5cebb0403a Fixed to work on Solaris x86 diff -r 75a95f82bc1f -r 48c34d68918e strip_fPIC.sh --- a/strip_fPIC.sh Thu May 10 20:13:29 2001 +0000 +++ b/strip_fPIC.sh Thu May 10 20:19:50 2001 +0000 @@ -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