build-scripts/strip_fPIC.sh
author Ryan C. Gordon <icculus@icculus.org>
Thu, 13 Sep 2012 15:24:04 -0400
changeset 6423 339c0ccf6250
parent 1889 5225a9cc25a2
child 4297 27fe0dd48269
permissions -rwxr-xr-x
Make the X11 SetBordered event tapdancing more robust, restore focus, etc.
     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         -?PIC)
     9             # Ignore -fPIC and -DPIC options
    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