build-scripts/strip_fPIC.sh
author Sam Lantinga <slouken@libsdl.org>
Wed, 17 May 2006 18:57:04 +0000
changeset 1850 d5d3a6fe05a1
parent 1361 19418e4422cb
child 1711 865ba39fc96d
permissions -rwxr-xr-x
Fixed thread callback calling conventions, updated OS/2 DLL name to SDL12.dll

#!/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