2001-04-26 16:45:43 +00:00
|
|
|
#!/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=""
|
2001-04-26 16:50:19 +00:00
|
|
|
while [ $# -gt 0 ]; do
|
2001-05-10 20:19:50 +00:00
|
|
|
case "$1" in
|
|
|
|
-?PIC)
|
|
|
|
# Ignore -fPIC and -DPIC options
|
|
|
|
;;
|
2006-06-26 05:27:15 +00:00
|
|
|
-fno-common)
|
|
|
|
# Ignore -fPIC and -DPIC options
|
|
|
|
;;
|
2001-05-10 20:19:50 +00:00
|
|
|
*)
|
2001-04-26 16:45:43 +00:00
|
|
|
command="$command $1"
|
2001-05-10 20:19:50 +00:00
|
|
|
;;
|
|
|
|
esac
|
2001-04-26 16:45:43 +00:00
|
|
|
shift
|
|
|
|
done
|
|
|
|
echo $command
|
|
|
|
exec $command
|