view strip_fPIC.sh @ 1184:a9542c38dcdb

Date: Tue, 22 Nov 2005 14:11:06 +0100 (MET) From: Mattias Karlsson <betasoft@acc.umu.se> To: sdl@libsdl.org Subject: [SDL] [PATCH] Fix (tiny) build problems on solaris (fwd) This small patch fixes building audio on solaris 2.9 with gcc 4.0
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 22 Nov 2005 15:07:41 +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