summaryrefslogtreecommitdiffstats
path: root/qtwebengine.pro
diff options
context:
space:
mode:
Diffstat (limited to 'qtwebengine.pro')
-rw-r--r--qtwebengine.pro12
1 files changed, 8 insertions, 4 deletions
diff --git a/qtwebengine.pro b/qtwebengine.pro
index 366446c7a..c3e56fe8e 100644
--- a/qtwebengine.pro
+++ b/qtwebengine.pro
@@ -1,8 +1,12 @@
load(qt_build_config)
-# As long as we are a module separate from the rest of Qt, we want to unconditionally build examples.
-# Once part of Qt 5, this should be removed and we should respect the Qt wide configuration.
-QTWEBENGINE_BUILD_PARTS = $$QT_BUILD_PARTS
-QTWEBENGINE_BUILD_PARTS *= examples
+# Examples will only be able to find libQt5WebEngineCore.so if the proper RPATH was set on libQt5WebEngineWidgets.so
+# Arch Linux disables RPATH for security reasons.
+!isEmpty($$QMAKE_LFLAGS_RPATH) {
+ # As long as we are a module separate from the rest of Qt, we want to unconditionally build examples.
+ # Once part of Qt 5, this should be removed and we should respect the Qt wide configuration.
+ QTWEBENGINE_BUILD_PARTS = $$QT_BUILD_PARTS
+ QTWEBENGINE_BUILD_PARTS *= examples
+}
load(qt_parts)