diff options
author | Eric Hameleers <alien@slackware.com> | 2015-09-13 13:12:45 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2015-09-13 13:12:45 +0200 |
commit | 3a77d91e85cdeb6ff716683aaf242e633c9e960f (patch) | |
tree | b61b1b9ced7142a8670778c44c02e4e1dc8b5e1d /kde/cmake/frameworkintegration | |
parent | 8425a13987c3657bc59791715befd8fe9cbc8c6c (diff) | |
download | ktown-3a77d91e85cdeb6ff716683aaf242e633c9e960f.tar.gz ktown-3a77d91e85cdeb6ff716683aaf242e633c9e960f.tar.xz |
frameworkintegration: add "-fno-strict-aliasing" to compilerflags.
Workaround a bug in Qt 5.5.0 which makes OwnCloud crash when
interacting with the systray menu (and possibly other applications
too) by adding "-fno-strict-aliasing" to CFLAGS and CXXFLAGS.
See also http://bugzilla.redhat.com/1255902
and https://bugreports.qt.io/browse/QTBUG-47863
Diffstat (limited to 'kde/cmake/frameworkintegration')
-rw-r--r--[l---------] | kde/cmake/frameworkintegration | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/kde/cmake/frameworkintegration b/kde/cmake/frameworkintegration index ec699d7..1ac71b9 120000..100644 --- a/kde/cmake/frameworkintegration +++ b/kde/cmake/frameworkintegration @@ -1 +1,27 @@ -frameworks
\ No newline at end of file +# Workaround a bug in Qt 5.5.0 which makes OwnCloud crash when interacting +# with the systray menu (and possibly other applications too) +# by adding "-fno-strict-aliasing" to CFLAGS and CXXFLAGS +# See also http://bugzilla.redhat.com/1255902 +# and https://bugreports.qt.io/browse/QTBUG-47863 +mkdir build +cd build + cmake \ + $KDE_OPT_ARGS \ + -DKDE_PLATFORM_FEATURE_DISABLE_DEPRECATED=TRUE \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS -fno-strict-aliasing" \ + -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS -fno-strict-aliasing" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -fno-strict-aliasing" \ + -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS -fno-strict-aliasing" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DMAN_INSTALL_DIR=/usr/man \ + -DSYSCONF_INSTALL_DIR=/etc/kde \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DLIB_INSTALL_DIR=lib$LIBDIRSUFFIX \ + -DLIBEXEC_INSTALL_DIR=lib$LIBDIRSUFFIX \ + -DQML_INSTALL_DIR=lib$LIBDIRSUFFIX/qt5/qml \ + -DQT_PLUGIN_INSTALL_DIR=lib$LIBDIRSUFFIX/qt5/plugins \ + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ + -Dlconvert_executable=/usr/lib$LIBDIRSUFFIX/qt5/bin/lconvert \ + .. + |