diff options
author | Treeve Jelbert | 2016-05-20 21:49:05 +0200 |
---|---|---|
committer | Treeve Jelbert | 2016-05-20 21:49:05 +0200 |
commit | 2def1e110e1c51f6166ecd2124bcdf6ba81b9319 (patch) | |
tree | c68ed3184dca2d56342943ceab7f7592b2ffebc6 /FUNCTIONS | |
parent | 3f1652e294869b738852143fbddb39277aea98d0 (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-x | FUNCTIONS | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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" |