summaryrefslogtreecommitdiff
path: root/multimedia/transcode/files/strip_fPIC.sh
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/transcode/files/strip_fPIC.sh')
-rwxr-xr-xmultimedia/transcode/files/strip_fPIC.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/multimedia/transcode/files/strip_fPIC.sh b/multimedia/transcode/files/strip_fPIC.sh
new file mode 100755
index 00000000000..007c94fb0a5
--- /dev/null
+++ b/multimedia/transcode/files/strip_fPIC.sh
@@ -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