build-scripts/strip_fPIC.sh
author Sam Lantinga <slouken@libsdl.org>
Thu, 13 Apr 2006 13:25:21 +0000
changeset 1623 09375aed0208
parent 1361 19418e4422cb
child 1711 865ba39fc96d
permissions -rwxr-xr-x
Added a delay so the warning message isn't accidentally missed.

#!/bin/sh
#
# libtool assumes that the compiler can handle the -fPIC flag
# This isn't always true (for example, nasm can't handle it)
command=""
while [ $# -gt 0 ]; do
    case "$1" in
        -?PIC)
            # Ignore -fPIC and -DPIC options
            ;;
        *)
            command="$command $1"
            ;;
    esac
    shift
done
echo $command
exec $command