-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link against libc++abi and libunwind as well when building LLVM wrappers on AIX #123359
Conversation
Is |
Not really, it's not like libc. Normal C programs don't depend on libunwind.
Here, libunwind is the dependency of libc++.
Fedora's build should have set
Exactly. I was hesitating to add libunwind here. Adding libc++ and libc++abi here already works. From a local view, libc++ depends on libc++abi and libunwind, so I add both here; from a global view, we are building something that definitely depends on |
OK, sounds fine to just include it. @bors r+ rollup |
…kingjubilee Rollup of 4 pull requests Successful merges: - rust-lang#122411 ( Provide cabi_realloc on wasm32-wasip2 by default ) - rust-lang#123349 (Fix capture analysis for by-move closure bodies) - rust-lang#123359 (Link against libc++abi and libunwind as well when building LLVM wrappers on AIX) - rust-lang#123388 (use a consistent style for links) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#123359 - bzEq:aix-libc++abi, r=cuviper Link against libc++abi and libunwind as well when building LLVM wrappers on AIX Unlike `libc++.so` on Linux which is a linker script ```ld INPUT(libc++.so.1 -lc++abi -lunwind) ``` AIX linker doesn't support such script, so `c++abi` and `unwind` have to be specified explicitly.
Unlike
libc++.so
on Linux which is a linker scriptAIX linker doesn't support such script, so
c++abi
andunwind
have to be specified explicitly.