strip_fPIC.sh
author Ryan C. Gordon <icculus@icculus.org>
Thu, 19 Jan 2006 08:43:00 +0000
changeset 1251 86d0d01290ea
parent 22 48c34d68918e
permissions -rwxr-xr-x
Updated Windows CE/PocketPC support...adds GAPI driver, landscape mode,
updated project files, VS2005 support, VGA mode, more device support, etc,
etc, etc.

Fixes Bugzilla #47 and #28.

--ryan.
slouken@0
     1
#!/bin/sh
slouken@0
     2
#
slouken@0
     3
# libtool assumes that the compiler can handle the -fPIC flag
slouken@0
     4
# This isn't always true (for example, nasm can't handle it)
slouken@0
     5
command=""
slouken@1
     6
while [ $# -gt 0 ]; do
slouken@22
     7
    case "$1" in
slouken@22
     8
        -?PIC)
slouken@22
     9
            # Ignore -fPIC and -DPIC options
slouken@22
    10
            ;;
slouken@22
    11
        *)
slouken@0
    12
            command="$command $1"
slouken@22
    13
            ;;
slouken@22
    14
    esac
slouken@0
    15
    shift
slouken@0
    16
done
slouken@0
    17
echo $command
slouken@0
    18
exec $command