pkgsrc/multimedia/x264-devel/files/strip_fopt.sh
bjs 47a40db702 Update to 20081218 snapshot. There is no NEWS file or list of changes;
please see the repository for more information.  I'm doing this update
our version is over a year old and some software is starting to require
a newer version.
2008-12-18 16:19:07 +00:00

23 lines
422 B
Bash
Executable file

#!/bin/sh
#
# $NetBSD: strip_fopt.sh,v 1.2 2008/12/18 16:19:07 bjs Exp $
#
# libtool assumes that the compiler can handle the -fPIC flag and the
# -fno-common. This isn't always true, for example yasm can't handle it.
command="$1"
shift
while [ $# -gt 0 ]; do
case "$1" in
-fPIC|-fno-common)
;;
-DPIC)
command="$command -D__PIC__"
;;
*)
command="$command $1"
;;
esac
shift
done
echo $command
exec $command