Mercurial > sdl-ios-xcode
comparison build-scripts/strip_fPIC.sh @ 1361:19418e4422cb
New configure-based build system. Still work in progress, but much improved
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 16 Feb 2006 10:11:48 +0000 |
parents | |
children | 865ba39fc96d |
comparison
equal
deleted
inserted
replaced
1360:70a9cfb4cf1b | 1361:19418e4422cb |
---|---|
1 #!/bin/sh | |
2 # | |
3 # libtool assumes that the compiler can handle the -fPIC flag | |
4 # This isn't always true (for example, nasm can't handle it) | |
5 command="" | |
6 while [ $# -gt 0 ]; do | |
7 case "$1" in | |
8 -?PIC) | |
9 # Ignore -fPIC and -DPIC options | |
10 ;; | |
11 *) | |
12 command="$command $1" | |
13 ;; | |
14 esac | |
15 shift | |
16 done | |
17 echo $command | |
18 exec $command |