build-scripts/strip_fPIC.sh
author Cameron Cawley <ccawley2011@gmail.com>
Fri, 26 Apr 2019 17:41:20 +0100
branchSDL-1.2
changeset 12778 c47cdc60c1b3
parent 4297 27fe0dd48269
permissions -rwxr-xr-x
riscos: Clean up SWI calls
     1 #!/bin/sh
     2 #
     3 # libtool assumes that the compiler can handle the -fPIC flag
     4 # This isn't always true (for example, nasm can't handle it)
     5 command=""
     6 while [ $# -gt 0 ]; do
     7     case "$1" in
     8         -fPIC)
     9             # Ignore -fPIC option
    10             ;;
    11         -fno-common)
    12             # Ignore -fPIC and -DPIC options
    13             ;;
    14         *)
    15             command="$command $1"
    16             ;;
    17     esac
    18     shift
    19 done
    20 echo $command
    21 exec $command