Skip to content

Commit 04f6171

Browse files
committed
Add a comment about LD_RUNPATH_SEARCH_PATHS being incompatible with -static
We'll need to resolve this to support Swift Embedded use cases, among others. This logic should maybe move down into the Swift Build layer, and have it automatically ignore -rpath when -static is present.
1 parent c812ade commit 04f6171

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/SwiftBuildSupport/PackagePIFProjectBuilder+Modules.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,7 @@ extension PackagePIFProjectBuilder {
769769
// A (executable) -> B (dynamicLibrary) -> C (objectFile)
770770
//
771771
// An imparted build setting on C will propagate back to both B and A.
772+
// FIXME: -rpath should not be given if -static is
772773
impartedSettings[.LD_RUNPATH_SEARCH_PATHS] =
773774
["$(RPATH_ORIGIN)"] +
774775
(impartedSettings[.LD_RUNPATH_SEARCH_PATHS] ?? ["$(inherited)"])

0 commit comments

Comments
 (0)