build-scripts/strip_fPIC.sh
changeset 1361 19418e4422cb
child 1711 865ba39fc96d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/build-scripts/strip_fPIC.sh	Thu Feb 16 10:11:48 2006 +0000
@@ -0,0 +1,18 @@
+#!/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
+            ;;
+        *)
+            command="$command $1"
+            ;;
+    esac
+    shift
+done
+echo $command
+exec $command