packages/libflac: don't hardcode altivec options in CPUCFLAGS
authorGabor Juhos <juhosg@openwrt.org>
Sun, 2 Feb 2014 11:01:47 +0000 (11:01 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 2 Feb 2014 11:01:47 +0000 (11:01 +0000)
commit69f1d464773718faeb01e576769c51db5088aba4
treea9f0aef45d573ea954d6f32a08a054d5672e615d
parente2a161fc9262312ef4877a894df9ac7e8688698f
packages/libflac: don't hardcode altivec options in CPUCFLAGS

The '-maltivec' and '-mabi=altivec' options always
included in the CPUCPFLAGS variable, even if altivec
support is disabled. This causes build failure on
powerpc platforms without altivec support:

  bitmath.c:1:0: error: AltiVec and E500 instructions cannot coexist

Update the src/libFLAC/Makefile.am template to skip
altivec options if 'FLaC__USE_ALTIVEC' is not used.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 39443
libs/flac/patches/020-libFLAC-remove-altivec-options.patch [new file with mode: 0644]