blob: fdf7de6b5f2e9f3efe5403bc0896b539b3d26997 [file] [log] [blame]
Josh Coalson5859e812001-07-16 18:01:08 +00001#!/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
Josh Coalson765ff502002-08-27 05:46:11 +00007 if [ "$1" != "-fPIC" ]; then
8 if [ "$1" != "-DPIC" ]; then
9 command="$command $1"
10 fi
11 fi
12 shift
Josh Coalson5859e812001-07-16 18:01:08 +000013done
14echo $command
15exec $command