view strip_fPIC.sh @ 766:ed57c876700d

Date: Wed, 26 Nov 2003 01:52:02 +0800 From: "Andy Pfiffer" Subject: [SDL] patch: PocketPC 2000 diffs for release_1_2_6 I was making a backup of my current workspace of SDL for PocketPC, and thought I would send out my diffs. Apologies in advance if the patch has become whitespace mangled. These diffs are relative to CVS tag release_1_2_6, and contain (I think) all changes that have been mentioned on the mailing list in the last few months. I only have PocketPC 2000 & an ARM-based device (iPaq 3635), and I only use Embedded Visual Tools 3.0, so I can't say for sure if it breaks other PocketPC 200[023] builds.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 04 Jan 2004 15:48:44 +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