qt5: move gcc version check to pre_configure()
This commit is contained in:
parent
266ff9e6bc
commit
802943ad12
1 changed files with 6 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'qt5'
|
# Template file for 'qt5'
|
||||||
pkgname=qt5
|
pkgname=qt5
|
||||||
version=5.6.2
|
version=5.6.2
|
||||||
revision=2
|
revision=3
|
||||||
wrksrc="qt-everywhere-opensource-src-${version}"
|
wrksrc="qt-everywhere-opensource-src-${version}"
|
||||||
homepage="http://qt.io/"
|
homepage="http://qt.io/"
|
||||||
short_desc="A cross-platform application and UI framework (QT5)"
|
short_desc="A cross-platform application and UI framework (QT5)"
|
||||||
|
@ -33,11 +33,6 @@ 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"
|
CFLAGS="-DOPENSSL_NO_SSL3_METHOD"
|
||||||
CXXFLAGS="-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
|
if [ -n "$CROSS_BUILD" ]; then
|
||||||
# Need some devel packages in the host to build qmake, moc, uic, rcc
|
# Need some devel packages in the host to build qmake, moc, uic, rcc
|
||||||
# wayland-devel contains /usr/bin/wayland-scanner
|
# wayland-devel contains /usr/bin/wayland-scanner
|
||||||
|
@ -135,6 +130,11 @@ _create_config() {
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
|
local _gccver=$(gcc --version | awk '/^gcc \(GCC\)/ { print $3 }')
|
||||||
|
if [ "${_gccver%%.*}" -gt 5 ]; then
|
||||||
|
CXXFLAGS+=" -fno-delete-null-pointer-checks"
|
||||||
|
fi
|
||||||
|
|
||||||
# Compatibility functions res_ninit() and res_nclose() for musl libc
|
# Compatibility functions res_ninit() and res_nclose() for musl libc
|
||||||
cp ${FILESDIR}/resolv_compat.h ${wrksrc}/qtwebengine/src/3rdparty/chromium/net/dns
|
cp ${FILESDIR}/resolv_compat.h ${wrksrc}/qtwebengine/src/3rdparty/chromium/net/dns
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
|
Loading…
Reference in a new issue