Merge pull request #597 from aofei/build

build: fix `sigsetjmp` issues and ensure required libs on Linux
This commit is contained in:
xushiwei
2024-07-29 11:26:03 +08:00
committed by GitHub
4 changed files with 26 additions and 3 deletions

View File

@@ -356,6 +356,8 @@ func linkMainPkg(ctx *context, pkg *packages.Package, pkgs []*aPackage, llFiles
"-rpath", "$ORIGIN",
"-rpath", "$ORIGIN/../lib",
"-Xlinker", "--gc-sections",
"-lm",
"-latomic",
"-lpthread", // libpthread is built-in since glibc 2.34 (2021-08-01); we need to support earlier versions.
)
}