summaryrefslogtreecommitdiffstats
path: root/FUNCTIONS
diff options
context:
space:
mode:
authorTreeve Jelbert2016-05-20 21:49:05 +0200
committerTreeve Jelbert2016-05-20 21:49:05 +0200
commit2def1e110e1c51f6166ecd2124bcdf6ba81b9319 (patch)
treec68ed3184dca2d56342943ceab7f7592b2ffebc6 /FUNCTIONS
parent3f1652e294869b738852143fbddb39277aea98d0 (diff)
currently,(2016-05-20) some spells, especially those relating to Qt or Chromium,
produce bad code when compiled with gcc-6.1 we can avoid this problem by adding a global CXXFLAGS Please enter the commit message for your changes. Lines starting
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-xFUNCTIONS7
1 files changed, 7 insertions, 0 deletions
diff --git a/FUNCTIONS b/FUNCTIONS
index 674fd13c30..0360743984 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -5,6 +5,13 @@
QT4DIR=$INSTALL_ROOT/opt/qt4
QT5DIR=$INSTALL_ROOT/opt/qt5
+# currently,(2016-05-20) some spells, especially those relating to Qt or Chromium,
+# produce bad code when compiled with gcc-6.1
+# we can avoid this problem by adding a global CXXFLAGS
+if [[ "$(installed_version gcc | cut -d. -f1)" == "6" ]]; then
+ CXXFLAGS+=" -fno-delete-null-pointer-checks"
+fi
+
qt5_build() {
PATH="$QT5DIR/bin:$PATH"
export PKG_CONFIG_PATH="$QT5DIR/lib/pkgconfig"