qt5: fix gcc6 build

This commit is contained in:
Juergen Buchmueller 2016-09-25 09:45:20 +02:00
parent 6a653d37a2
commit ce92239df6
1 changed files with 5 additions and 0 deletions

View File

@ -34,6 +34,11 @@ replaces="qt5-doc<5.6.0 qt5-quick1<5.6.0 qt5-quick1-devel<5.6.0 qt5-webkit<5.6.0
CFLAGS="-DOPENSSL_NO_SSL3_METHOD"
CXXFLAGS="-DOPENSSL_NO_SSL3_METHOD"
_gccver=$(gcc --version | awk '/^gcc \(GCC\)/ { print $3 }')
if [ "${_gccver%%.*}" -gt 5 ]; then
CXXFLAGS+=" -fno-delete-null-pointer-checks"
fi
if [ -n "$CROSS_BUILD" ]; then
# Need some devel packages in the host to build qmake, moc, uic, rcc
# wayland-devel contains /usr/bin/wayland-scanner