view strip_fPIC.sh @ 1298:e1b8e1b97b67

This library is now available under the LGPL 2.1, the major change of which is allowing linking with a shared object to be considered sufficient for complying with section 6 of the LGPL.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 30 Jan 2006 14:27:56 +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