package/brotli: properly pass TARGET_CFLAGS in Microblaze workaround
authorGiulio Benetti <giulio.benetti@micronovasrl.com>
Fri, 14 Jun 2019 09:43:28 +0000 (11:43 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 20 Jun 2019 14:29:17 +0000 (16:29 +0200)
commit657ffee375f4751a760b28795c7064e89b882147
treeab56de1adf415747cbd146896bb610ee68194a7d
parent733ea6bb4bec6e9ff9ffd8f7444527f91c72033e
package/brotli: properly pass TARGET_CFLAGS in Microblaze workaround

In commit 39dde1ffb6a7111c2fa2b340c940e4d3e685aa29 ("package/brotli:
work around gcc bug 68485"), a mistake was made: when
BR2_TOOLCHAIN_HAS_GCC_BUG_68485=y, we're only passing -O0 as CFLAGS,
completely ignoring TARGET_CFLAGS, which is not good.

This commit fixes that by introducing a BROTLI_CFLAGS variable,
initially defined to TARGET_CFLAGS, and to which we add -O0 when
BR2_TOOLCHAIN_HAS_GCC_BUG_68485=y.

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
[Thomas: rework commit log]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/brotli/brotli.mk