tune the preloads a bit
[sdl_omap.git] / build-scripts / strip_fPIC.sh
CommitLineData
e14743d1 1#!/bin/sh
2#
3# libtool assumes that the compiler can handle the -fPIC flag
4# This isn't always true (for example, nasm can't handle it)
5command=""
6while [ $# -gt 0 ]; do
7 case "$1" in
8 -fPIC)
9 # Ignore -fPIC option
10 ;;
11 -fno-common)
12 # Ignore -fPIC and -DPIC options
13 ;;
14 *)
15 command="$command $1"
16 ;;
17 esac
18 shift
19done
20echo $command
21exec $command