pkgsrc/audio/flac/patches/patch-strip_non_asm_libtool_args.sh
adam a160a29ba8 FLAC 1.3.2:
General:
* Fix undefined behaviour using GCC/Clang UBSAN (erikd).
* General hardening via fuzz testing with AFL (erikd and others).
* General code improvements (lvqcl, erikd and others).
* Add FLAC in MP4 specification docs (Ralph Giles).
* MSVS build cleanups (lvqcl).
* Fix some cppcheck warnings (erikd).
* Assume all currently used OSes support SSE2.

flac:
* Fix potential infinite loop on flac-to-flac conversion (erikd).
* Add WAVEFORMATEXTENSIBLE to WAV (as needed) when decoding (lvqcl).
* Only write vorbis-comments if they are non-empty.
* Error out if decoding RAW with bits != (8|16|24).

metaflac:
* Add --scan-replay-gain option.

build system:
* Fixes for MSVC and Makefile.lite build systems.

libraries:
* CPU detection cleanup and fixes (Julian Calaby, erikd and lvqcl).
* Fix two stream decoder bugs (Max Kellermann).
* Fix a NULL dereference bug (on a malformed file).
* Changed the LPC order guess for a slight compression improvement, particularly for classical music (Martijn van Beurden).
* Improved encoding speed on older Intel CPUs.
* Fixed a seeking bug when decoding certain files (Miroslav Lichvar).
* Put an upper bound (32768) on the number of seek points.
* Fix potential memory leaks.
* Support 64bit brword/bwword allowing FLAC__BYTES_PER_WORD to be set to 8 (disabled by default).
* Fix an out-of-bounds heap read.
* Win32: Only use large buffers when writing to disk.
2017-01-01 11:52:36 +00:00

29 lines
714 B
Bash

$NetBSD: patch-strip_non_asm_libtool_args.sh,v 1.1 2017/01/01 11:52:36 adam Exp $
Support -kPIC and simplify.
--- strip_non_asm_libtool_args.sh.orig 2004-07-29 08:43:23.000000000 +0200
+++ strip_non_asm_libtool_args.sh 2007-02-22 20:11:41.000000000 +0100
@@ -5,15 +5,12 @@
# Also, on some versions of OS X it tries to pass -fno-common
# to 'as' which causes problems.
command=""
-while [ $1 ]; do
- if [ "$1" != "-fPIC" ]; then
- if [ "$1" != "-DPIC" ]; then
- if [ "$1" != "-fno-common" ]; then
- command="$command $1"
- fi
- fi
- fi
- shift
+for arg; do
+ case "$arg" in
+ -[DfK]PIC |\
+ -fno-common) continue;;
+ esac
+ command="$command $arg"
done
-echo $command
+echo "$command"
exec $command