From 9682c8870b8ff5e4ac2e4c70b759f791c6f38c1f Mon Sep 17 00:00:00 2001 From: Jesse Hall Date: Mon, 9 Jul 2012 11:27:07 -0700 Subject: Import SDL release-1.2.15 Change-Id: I505c4aea24325cad475f217db5589814b4c75dbf --- distrib/sdl-1.2.15/build-scripts/strip_fPIC.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 distrib/sdl-1.2.15/build-scripts/strip_fPIC.sh (limited to 'distrib/sdl-1.2.15/build-scripts/strip_fPIC.sh') 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 -- cgit v1.1