Mercurial > sdl-ios-xcode
view build-scripts/strip_fPIC.sh @ 4347:38f22ed3a433 SDL-1.2
Option to fix bug #851
For some people setting the period size works better (and is what SDL 1.2.13 did), but for most people it's the same or worse. You can use an environment variable to pick which one you want.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 17 Oct 2009 06:55:17 +0000 |
parents | 27fe0dd48269 |
children |
line wrap: on
line source
#!/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