[lld] [LLD][Cygwin] Add libcygwin to exclude from auto-export library list (PR #143118)
Tomohiro Kashiwada via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 7 16:03:50 PDT 2025
https://github.com/kikairoya updated https://github.com/llvm/llvm-project/pull/143118
>From 9d2c86ac6a49cbebafe8ac1b59cf36f0daa3ba06 Mon Sep 17 00:00:00 2001
From: kikairoya <kikairoya at gmail.com>
Date: Fri, 6 Jun 2025 19:42:29 +0900
Subject: [PATCH] [LLD][Cygwin] Add libcygwin and libmsys-2.0 to
exclude-from-auto-export library list
Linking for Cygwin target always needs -lcygwin (and, -lmsys-2.0
instead for MSYS2 target) but should not auto-export from
them, same as -lmingw32 for MinGW target.
---
lld/COFF/MinGW.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lld/COFF/MinGW.cpp b/lld/COFF/MinGW.cpp
index ca9ae403f181b..e7117cbea2e88 100644
--- a/lld/COFF/MinGW.cpp
+++ b/lld/COFF/MinGW.cpp
@@ -46,6 +46,8 @@ AutoExporter::AutoExporter(
"libclang_rt.profile-arm",
"libclang_rt.profile-i386",
"libclang_rt.profile-x86_64",
+ "libcygwin",
+ "libmsys-2.0",
"libc++",
"libc++abi",
"libflang_rt.runtime",
More information about the llvm-commits
mailing list