pcsxr/strip_fPIC.sh
SND\edgbla_cp 065ccce6e9 Unix style EOL (thanks to darktjm);
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@81299 e17a0e51-4ae3-4d35-97c3-1a29b211df97
2012-11-18 18:15:59 +00:00

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