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)
commit1ea366abd8697507091967860d29427c6fedf4b6
tree62d0ad17a96d7cf1f06dacac9ee190fa548c23ea
parent2fa4bd68b6e767d6a0a09625b150a641871fe865
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]