We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46fc91f commit 8db82fcCopy full SHA for 8db82fc
1 file changed
pylib/gyp/generator/make.py
@@ -1738,7 +1738,8 @@ def WriteTarget(
1738
# into the link command, so we need lots of escaping.
1739
ldflags.append(r"-Wl,-rpath=\$$ORIGIN/")
1740
ldflags.append(r"-Wl,-rpath-link=\$(builddir)/")
1741
- library_dirs = config.get("library_dirs", [])
+ if library_dirs := config.get("library_dirs", []):
1742
+ library_dirs = [Sourceify(self.Absolutify(i)) for i in library_dirs]
1743
ldflags += [("-L%s" % library_dir) for library_dir in library_dirs]
1744
self.WriteList(ldflags, "LDFLAGS_%s" % configname)
1745
if self.flavor == "mac":
0 commit comments