annotate src/flac-1.2.1/strip_non_asm_libtool_args.sh @ 1:05aa0afa9217

Bring in flac, ogg, vorbis
author Chris Cannam
date Tue, 19 Mar 2013 17:37:49 +0000
parents
children
rev   line source
Chris@1 1 #!/bin/sh
Chris@1 2 #
Chris@1 3 # libtool assumes that the compiler can handle the -fPIC flag.
Chris@1 4 # This isn't always true (for example, nasm can't handle it).
Chris@1 5 # Also, on some versions of OS X it tries to pass -fno-common
Chris@1 6 # to 'as' which causes problems.
Chris@1 7 command=""
Chris@1 8 while [ $1 ]; do
Chris@1 9 if [ "$1" != "-fPIC" ]; then
Chris@1 10 if [ "$1" != "-DPIC" ]; then
Chris@1 11 if [ "$1" != "-fno-common" ]; then
Chris@1 12 command="$command $1"
Chris@1 13 fi
Chris@1 14 fi
Chris@1 15 fi
Chris@1 16 shift
Chris@1 17 done
Chris@1 18 echo $command
Chris@1 19 exec $command