diff --git a/qtwebengine.pro b/qtwebengine.pro index 366446c7a982171a916151cdf6cda542f43629cf..c3e56fe8e077334b2f0ff18f93211d41b6dc9120 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)