flatbuffers: fix gcc9 build

[ci skip]
This commit is contained in:
q66 2019-10-08 02:07:29 +02:00 committed by John Zimmermann
parent 11baa9380a
commit 06155b6c8c
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,9 @@ homepage="https://google.github.io/flatbuffers/"
distfiles="https://github.com/google/${pkgname}/archive/v${version}.tar.gz"
checksum=3714e3db8c51e43028e10ad7adffb9a36fc4aa5b1a363c2d0c4303dd1be59a7c
# prevents building of tests on gcc9
CXXFLAGS="-Wno-error=class-memaccess"
if [ "$CROSS_BUILD" ]; then
# Disable tests to prevent executing target binaries on host
configure_args="-DFLATBUFFERS_BUILD_TESTS=OFF"