view build-scripts/strip_fPIC.sh @ 4260:42d28f92253b SDL-1.2

Removed -rpath from link line. We don't need to look in the library's install dir for dependencies; They are all system libraries that should be in other path lists anyhow. Fixes Bugzilla #499.
author Ryan C. Gordon <icculus@icculus.org>
date Mon, 28 Sep 2009 18:21:58 +0000
parents 5225a9cc25a2
children 27fe0dd48269
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
            ;;
        -fno-common)
            # Ignore -fPIC and -DPIC options
            ;;
        *)
            command="$command $1"
            ;;
    esac
    shift
done
echo $command
exec $command