build-scripts/strip_fPIC.sh
changeset 1361 19418e4422cb
child 1711 865ba39fc96d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/build-scripts/strip_fPIC.sh	Thu Feb 16 10:11:48 2006 +0000
     1.3 @@ -0,0 +1,18 @@
     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 [ $# -gt 0 ]; do
    1.10 +    case "$1" in
    1.11 +        -?PIC)
    1.12 +            # Ignore -fPIC and -DPIC options
    1.13 +            ;;
    1.14 +        *)
    1.15 +            command="$command $1"
    1.16 +            ;;
    1.17 +    esac
    1.18 +    shift
    1.19 +done
    1.20 +echo $command
    1.21 +exec $command