X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=build-aux%2Fstrip_fPIC.sh;fp=build-aux%2Fstrip_fPIC.sh;h=45d34ba478d4bd8a9550e4d70fc86bfd82953cc9;hp=0000000000000000000000000000000000000000;hb=8b36be62a40512bbe5f21f206fbd7cfbc6293fd1;hpb=b864d14ada7c27fd776920346811fb40331f39b9 diff --git a/build-aux/strip_fPIC.sh b/build-aux/strip_fPIC.sh new file mode 100755 index 00000000..45d34ba4 --- /dev/null +++ b/build-aux/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