buildroot/package/apitrace
Giulio Benetti 6f5fcb4329 package/apitrace: fix build failure due to gcc bug 68485 and 85180
The apitrace package exhibits gcc bug 68485 when built for the
Microblaze architecture with optimization enabled, which causes a build
failure. This is mainly due to 3rd party brotli embedded in apitrace
that already has been fixed in Buildroot as single package. After
working around this bug overriding -O0 to CFLAGS(Brotli is a C program),
gcc bug 81580 showed off while compiling C++ files.

So, as done for other packages in Buildroot, work around this gcc bug by
setting optimization to -O0(in CFLAGS) if
BR2_TOOLCHAIN_HAS_GCC_BUG_68485=y. And do the same(but in CXXFLAGS) if
BR2_TOOLCHAIN_HAS_GCC_BUG_85180=y as already done for other packages.

Fixes:
http://autobuild.buildroot.net/results/a46/a46626cc50f07f41d831614306f556d346d31429/

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
[yann.morin.1998@free.fr: reorganise the conditions]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2020-01-01 10:13:09 +01:00
..
0001-dlsym-Fix-build-under-uClibc.patch package/apitrace: fix build under uClibc/musl 2019-12-08 22:44:13 +01:00
0002-Support-libc-that-don-t-have-RTLD_DEEPBIND.patch package/apitrace: fix build on uclibc 2019-12-25 22:00:58 +01:00
Config.in package/apitrace: needs dynamic library 2019-12-24 13:51:52 +01:00
apitrace.hash package/apitrace: bump to version 9.0 2019-12-08 16:08:57 +01:00
apitrace.mk package/apitrace: fix build failure due to gcc bug 68485 and 85180 2020-01-01 10:13:09 +01:00