Merge pull request #1274 from luoliwoshang/fix/ldl
fix:ldflags -ldl for earlier glibc version
This commit is contained in:
@@ -335,7 +335,9 @@ func use(goos, goarch string, wasiThreads, forceEspClang bool) (export Export, e
|
|||||||
"--gc-sections",
|
"--gc-sections",
|
||||||
"-lm",
|
"-lm",
|
||||||
"-latomic",
|
"-latomic",
|
||||||
"-lpthread", // libpthread is built-in since glibc 2.34 (2021-08-01); we need to support earlier versions.
|
// libpthread & libdl is built-in since glibc 2.34 (2021-08-01); we need to support earlier versions.
|
||||||
|
"-lpthread",
|
||||||
|
"-ldl",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user