Skip to content

Commit

Permalink
Fixed to work on Solaris x86
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Lantinga committed May 10, 2001
1 parent 29b0361 commit fd218a9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions strip_fPIC.sh
Expand Up @@ -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
Expand Down

0 comments on commit fd218a9

Please sign in to comment.