Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=93a8d74e6529aaa90ca8e36e0ba7823749a3729a
commit 93a8d74e6529aaa90ca8e36e0ba7823749a3729a Author: crazy <[email protected]> Date: Sun Sep 4 11:44:32 2016 +0200 qt5.sh prepare for gcc6 * added an check for gcc version and append * -fno-delete-null-pointer-check when gcc6 is found diff --git a/source/include/qt5.sh b/source/include/qt5.sh index b9cb5b8..0610e33 100644 --- a/source/include/qt5.sh +++ b/source/include/qt5.sh @@ -32,6 +32,18 @@ up2date="Flasttar $url/download-open-source/" _F_cd_path=${qtpkgfilename} makedepends+=('x11-protos' 'gperf') + +## From gcc6 docs +## Value range propagation now assumes that the this pointer of C++ member functions is non-null. This eliminates common +## null pointer checks but also breaks some non-conforming code-bases (such as Qt-5, Chromium, KDevelop). As a temporary +## work-around -fno-delete-null-pointer-checks can be used. Wrong code can be identified by using -fsanitize=undefined. + +_F_QT5_GCC_VER=$(gcc --version | head -n1 | cut -d" " -f4) + +case "$_F_QT5_GCC_VER" in +6.*) CXXFLAGS+=" -fno-delete-null-pointer-checks";; +esac + build_qt5() { Fcd _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
