strip_fPIC.sh
changeset 0 74212992fb08
child 1 cf2af46e9e2a
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/strip_fPIC.sh	Thu Apr 26 16:45:43 2001 +0000
     1.3 @@ -0,0 +1,15 @@
     1.4 +#!/bin/sh
     1.5 +#
     1.6 +# libtool assumes that the compiler can handle the -fPIC flag
     1.7 +# This isn't always true (for example, nasm can't handle it)
     1.8 +command=""
     1.9 +while [ $1 ]; do
    1.10 +    if [ "$1" != "-fPIC" ]; then
    1.11 +        if [ "$1" != "-DPIC" ]; then
    1.12 +            command="$command $1"
    1.13 +        fi
    1.14 +    fi
    1.15 +    shift
    1.16 +done
    1.17 +echo $command
    1.18 +exec $command