build-scripts/strip_fPIC.sh
author Sunny Sachanandani <sunnysachanandani@gmail.com>
Mon, 24 May 2010 21:02:58 +0530
changeset 4571 97dcf6f6213c
parent 1889 5225a9cc25a2
child 4297 27fe0dd48269
permissions -rwxr-xr-x
Added a #define option for compile time Xrender support. Added some more attributes (specific to Xrender) to the X11 structs. Added some code for querying the Xrender extension.

#!/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