qt-base: fix rpath for dependents (#47424)
ensure that CMAKE_INSTALL_RPATH_USE_LINK_PATH=ON works in qt packages.
This commit is contained in:
parent
f760e16688
commit
a3543008d9
@ -70,9 +70,15 @@ def cmake_args(self):
|
|||||||
if re_qt.match(dep.name):
|
if re_qt.match(dep.name):
|
||||||
qt_prefix_path.append(self.spec[dep.name].prefix)
|
qt_prefix_path.append(self.spec[dep.name].prefix)
|
||||||
|
|
||||||
# Now append all qt-* dependency prefixex into a prefix path
|
# Now append all qt-* dependency prefixes into a prefix path
|
||||||
args.append(self.define("QT_ADDITIONAL_PACKAGES_PREFIX_PATH", ":".join(qt_prefix_path)))
|
args.append(self.define("QT_ADDITIONAL_PACKAGES_PREFIX_PATH", ":".join(qt_prefix_path)))
|
||||||
|
|
||||||
|
# Make our CMAKE_INSTALL_RPATH redundant:
|
||||||
|
# for prefix of current package ($ORIGIN/../lib type of rpaths),
|
||||||
|
args.append(self.define("QT_DISABLE_RPATH", True))
|
||||||
|
# for prefixes of dependencies
|
||||||
|
args.append(self.define("QT_NO_DISABLE_CMAKE_INSTALL_RPATH_USE_LINK_PATH", True))
|
||||||
|
|
||||||
return args
|
return args
|
||||||
|
|
||||||
@run_after("install")
|
@run_after("install")
|
||||||
|
Loading…
Reference in New Issue
Block a user