view build-scripts/strip_fPIC.sh @ 2926:27f2b5e7e899

In theory this implements GDI rendering, but it doesn't work for some reason. Also removed blending support from the advertised interface, since it's not actually supported.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 30 Dec 2008 04:38:39 +0000
parents 5225a9cc25a2
children 27fe0dd48269
line wrap: on
line source

#!/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
            ;;
        -fno-common)
            # Ignore -fPIC and -DPIC options
            ;;
        *)
            command="$command $1"
            ;;
    esac
    shift
done
echo $command
exec $command