Mercurial > hg > sv-dependency-builds
annotate src/flac-1.2.1/strip_non_asm_libtool_args.sh @ 169:223a55898ab9 tip default
Add null config files
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Mon, 02 Mar 2020 14:03:47 +0000 |
parents | 98c1576536ae |
children |
rev | line source |
---|---|
cannam@86 | 1 #!/bin/sh |
cannam@86 | 2 # |
cannam@86 | 3 # libtool assumes that the compiler can handle the -fPIC flag. |
cannam@86 | 4 # This isn't always true (for example, nasm can't handle it). |
cannam@86 | 5 # Also, on some versions of OS X it tries to pass -fno-common |
cannam@86 | 6 # to 'as' which causes problems. |
cannam@86 | 7 command="" |
cannam@86 | 8 while [ $1 ]; do |
cannam@86 | 9 if [ "$1" != "-fPIC" ]; then |
cannam@86 | 10 if [ "$1" != "-DPIC" ]; then |
cannam@86 | 11 if [ "$1" != "-fno-common" ]; then |
cannam@86 | 12 command="$command $1" |
cannam@86 | 13 fi |
cannam@86 | 14 fi |
cannam@86 | 15 fi |
cannam@86 | 16 shift |
cannam@86 | 17 done |
cannam@86 | 18 echo $command |
cannam@86 | 19 exec $command |