view build-scripts/strip_fPIC.sh @ 3572:6bb9952d5029

Fixed bug #642 Gerry JJ 2008-11-09 02:11:49 PST The SDL_MouseMotionEvent struct has a field named "tilt" (currently marked "for future use"), for tablet stylus tilt information. However, one value is not enough for this, as tilt is two-dimensional. Reserving only one field for future use is no good when you're going to need two, so there should be two fields, tilt_x and tilt_y.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 16 Dec 2009 00:44:53 +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