dependencies/python: Fix Framework Python when pkg-config is installed

In this case, self.raw_link_args is None.

Fixes #14534.
This commit is contained in:
Daniele Nicolodi 2025-04-30 11:59:55 +02:00 committed by Jussi Pakkanen
parent a343b01d1b
commit 96e0c4bf4a
1 changed files with 3 additions and 1 deletions

View File

@ -333,7 +333,9 @@ class PythonPkgConfigDependency(PkgConfigDependency, _PythonDependencyBase):
# Add rpath, will be de-duplicated if necessary
if framework_prefix.startswith('/Applications/Xcode.app/'):
self.link_args += ['-Wl,-rpath,' + framework_prefix]
self.raw_link_args += ['-Wl,-rpath,' + framework_prefix]
if self.raw_link_args is not None:
# When None, self.link_args is used
self.raw_link_args += ['-Wl,-rpath,' + framework_prefix]
class PythonFrameworkDependency(ExtraFrameworkDependency, _PythonDependencyBase):