remove RPATH/RUNPATH from examples' binaries.
authorLisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Wed, 7 Feb 2024 11:12:42 +0000 (11:12 +0000)
committerRaspbian forward porter <root@raspbian.org>
Wed, 7 Feb 2024 11:12:42 +0000 (11:12 +0000)
Forwarded: not-needed
Last-Update: 2023-07-23

On Debian the examples are built against system's libraries, so there is no
need to set RPATH/RUNPATH.

Gbp-Pq: Name remove_rpath_from_examples.patch

cmake/QtBuildInternals/QtBuildInternalsConfig.cmake

index 7b125c0486ee74643423373f0641d509cb0c2442..4e8784c662b173f5cfa9f392be26d7be0ce15968 100644 (file)
@@ -849,7 +849,7 @@ macro(qt_examples_build_begin)
     # This means that installed examples are not relocatable at the moment. We would need to
     # annotate where each example is installed to, to be able to derive a relative rpath, and it
     # seems there's no way to query such information from CMake itself.
-    set(CMAKE_INSTALL_RPATH "${_default_install_rpath}")
+    #set(CMAKE_INSTALL_RPATH "${_default_install_rpath}")
     set(QT_DISABLE_QT_ADD_PLUGIN_COMPATIBILITY TRUE)
 
     install(CODE "