From ef79bbde537d6b9c745a7d86cb9df1d04c35590d Mon Sep 17 00:00:00 2001 From: PCSX* teams Date: Tue, 16 Nov 2010 14:15:22 +0200 Subject: pcsxr-1.9.92 --- strip_fPIC.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 strip_fPIC.sh (limited to 'strip_fPIC.sh') diff --git a/strip_fPIC.sh b/strip_fPIC.sh new file mode 100644 index 0000000..6edacd2 --- /dev/null +++ b/strip_fPIC.sh @@ -0,0 +1,15 @@ +#!/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 [ $1 ]; do + if [ "$1" != "-fPIC" ]; then + if [ "$1" != "-DPIC" ]; then + command="$command $1" + fi + fi + shift +done +echo $command +exec $command -- cgit v1.2.3