Skip to content

Commit

Permalink
qt6: Make tests work again.
Browse files Browse the repository at this point in the history
When compiling libraries, the qt6 qmake adds "-Wl,-rpath,/usr/lib64"
to the end of the link line for the library. This has the result of
embedding a RUNPATH=/usr/lib64 entry into the dynamic section of the
shared library. This overrides the RPATH in the test executable, and
prevents any of the transitively dependent libraries from being
found. (I.E. test_foo loads libmythmetadata which is found via RPATH,
but libmythmetadata needs libmythbase which can't be found because
RUNPATH overrides RPATH and only specifies /usr/lib64.)

Make the tests work on Qt by telling it not to set any RPATH
variables.
  • Loading branch information
linuxdude42 committed Sep 14, 2021
1 parent 4fe9c21 commit 7e53df2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mythtv/settings.pro
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ QT += core5compat
}
CONFIG += $$CCONFIG
CONFIG += c++17
CONFIG += no_qt_rpath

# Make sure all the Qt header files are marked as system headers
QMAKE_DEFAULT_INCDIRS += $$[QT_INSTALL_HEADERS]
Expand Down

0 comments on commit 7e53df2

Please sign in to comment.