packages/libflac: don't hardcode altivec options in CPUCFLAGS
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 2 Feb 2014 11:01:47 +0000 (11:01 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 2 Feb 2014 11:01:47 +0000 (11:01 +0000)
commite7ee3fdc1418b3372491d20f9a7b0534b3ab534e
treea9f0aef45d573ea954d6f32a08a054d5672e615d
parent1a7cc8cfb67e6e8417d091429c0e2e0f4bf4c43b
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>
git-svn-id: svn://svn.openwrt.org/openwrt/packages@39443 3c298f89-4303-0410-b956-a3cf2f4a3e73
libs/flac/patches/020-libFLAC-remove-altivec-options.patch [new file with mode: 0644]