SDL2/strip_fPIC.sh
Sam Lantinga 9b6cc5a90d Changes since SDL 1.2.0 release
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402
2001-04-26 16:50:19 +00:00

16 lines
334 B
Bash
Executable File

#!/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
if [ "$1" != "-fPIC" ]; then
if [ "$1" != "-DPIC" ]; then
command="$command $1"
fi
fi
shift
done
echo $command
exec $command