Skip to content

Commit a354300

Browse files
authored
qt-base: fix rpath for dependents (spack#47424)
ensure that CMAKE_INSTALL_RPATH_USE_LINK_PATH=ON works in qt packages.
1 parent f760e16 commit a354300

File tree

1 file changed

+7
-1
lines changed
  • var/spack/repos/builtin/packages/qt-base

1 file changed

+7
-1
lines changed

var/spack/repos/builtin/packages/qt-base/package.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,15 @@ def cmake_args(self):
7070
if re_qt.match(dep.name):
7171
qt_prefix_path.append(self.spec[dep.name].prefix)
7272

73-
# Now append all qt-* dependency prefixex into a prefix path
73+
# Now append all qt-* dependency prefixes into a prefix path
7474
args.append(self.define("QT_ADDITIONAL_PACKAGES_PREFIX_PATH", ":".join(qt_prefix_path)))
7575

76+
# Make our CMAKE_INSTALL_RPATH redundant:
77+
# for prefix of current package ($ORIGIN/../lib type of rpaths),
78+
args.append(self.define("QT_DISABLE_RPATH", True))
79+
# for prefixes of dependencies
80+
args.append(self.define("QT_NO_DISABLE_CMAKE_INSTALL_RPATH_USE_LINK_PATH", True))
81+
7682
return args
7783

7884
@run_after("install")

0 commit comments

Comments
 (0)