Skip to content

Commit 765b3ff

Browse files
lumagkraj
authored andcommitted
llvm-config: remove LLVM_LDFLAGS from --ldflags output
On native OE builds the LLVM_LDFLAGS gets a lot of extra flags which may depend on exact build dir and as such be inappropriate to binaries shared through sstate-cache. It is not possible to override this behaviour in llvm-config since crossscripts are not being used for native builds. As a OE-specific modification ignore LLVM_LDFLAGS for native builds. Upstream-Status: Inappropriate [OE-Specific] Signed-off-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Khem Raj <[email protected]>
1 parent 5249511 commit 765b3ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/llvm-config/llvm-config.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ int main(int argc, char **argv) {
542542
OS << ActiveIncludeOption << ' ' << LLVM_CXXFLAGS << '\n';
543543
} else if (Arg == "--ldflags") {
544544
OS << ((HostTriple.isWindowsMSVCEnvironment()) ? "-LIBPATH:" : "-L")
545-
<< ActiveLibDir << ' ' << LLVM_LDFLAGS << '\n';
545+
<< ActiveLibDir << '\n';
546546
} else if (Arg == "--system-libs") {
547547
PrintSystemLibs = true;
548548
} else if (Arg == "--libs") {

0 commit comments

Comments
 (0)