view strip_fPIC.sh @ 758:619fc21d154e

Date: Wed, 17 Dec 2003 18:07:29 -0800 PST From: "Andrew Bachmann" Subject: recent build changes To ensure that I submitted all the changes to you I attempt to rebuild SDL from a clean cvs checkout. Unfortunately it failed with this error: /boot/develop/libsdl/SDL12/src/audio/baudio/SDL_beaudio.cc:35: SDL_BeApp.h: No such file or directory
author Sam Lantinga <slouken@libsdl.org>
date Thu, 18 Dec 2003 05:01:47 +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