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 [ $1 ]; do
7	if [ "$1" != "-fPIC" ]; then
8		if [ "$1" != "-DPIC" ]; then
9			if [ "$1" != "-fno-common" ]; then
10				command="$command $1"
11			fi
12		fi
13	fi
14	shift
15done
16echo $command
17exec $command
18