Mercurial > sdl-ios-xcode
view strip_fPIC.sh @ 26:c447d5b9275d
Date: Wed, 9 May 2001 18:03:20 -0600
From: Peter Valchev <pvalchev@openbsd.org>
Subject: openbsd patches
- The dlsym() one is supposed to fix dynamic loading on our a.out
architectures, where prefixing of an underscore symbol is required.
Actually I don't know what kind of dynamic loading does SDL deal with,
but anyway. You may want to make that change global, but only gcc's
preprocessor passes __ELF__, I think, so you can just add Linux or
something if you decide so.
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Thu, 10 May 2001 20:31:51 +0000 |
parents | 48c34d68918e |
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 -?PIC) # Ignore -fPIC and -DPIC options ;; *) command="$command $1" ;; esac shift done echo $command exec $command