pkgsrc - initial commit
[pkgsrc.git] / audio / flac / patches / patch-af
1 $NetBSD: patch-af,v 1.4 2007/02/22 19:11:26 rillig Exp $
2
3 --- strip_non_asm_libtool_args.sh.orig  2004-07-29 08:43:23.000000000 +0200
4 +++ strip_non_asm_libtool_args.sh       2007-02-22 20:11:41.000000000 +0100
5 @@ -5,15 +5,12 @@
6  # Also, on some versions of OS X it tries to pass -fno-common
7  # to 'as' which causes problems.
8  command=""
9 -while [ $1 ]; do
10 -       if [ "$1" != "-fPIC" ]; then
11 -               if [ "$1" != "-DPIC" ]; then
12 -                       if [ "$1" != "-fno-common" ]; then
13 -                               command="$command $1"
14 -                       fi
15 -               fi
16 -       fi
17 -       shift
18 +for arg; do
19 +       case "$arg" in
20 +       -[DfK]PIC |\
21 +       -fno-common)    continue;;
22 +       esac
23 +       command="$command $arg"
24  done
25 -echo $command
26 +echo "$command"
27  exec $command