aboutsummaryrefslogtreecommitdiffstats
path: root/distrib/sdl-1.2.15/build-scripts/strip_fPIC.sh
diff options
context:
space:
mode:
Diffstat (limited to 'distrib/sdl-1.2.15/build-scripts/strip_fPIC.sh')
-rwxr-xr-xdistrib/sdl-1.2.15/build-scripts/strip_fPIC.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/distrib/sdl-1.2.15/build-scripts/strip_fPIC.sh b/distrib/sdl-1.2.15/build-scripts/strip_fPIC.sh
new file mode 100755
index 0000000..45d34ba
--- /dev/null
+++ b/distrib/sdl-1.2.15/build-scripts/strip_fPIC.sh
@@ -0,0 +1,21 @@
+#!/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
+ -fPIC)
+ # Ignore -fPIC option
+ ;;
+ -fno-common)
+ # Ignore -fPIC and -DPIC options
+ ;;
+ *)
+ command="$command $1"
+ ;;
+ esac
+ shift
+done
+echo $command
+exec $command