nixpkgs/pkgs/test/cc-wrapper
Peter Waller 3c03811683 llvmPackages_*.libcxx: include libcxxabi within libcxx
Key test case: nixpkgs#pkgsStatic.pkgsLLVM.ncurses

Prior to this patch, this fails with errors such as:

```
error: undefined symbol: __cxa_throw
```

I think this is a reasonable solution because in #292043, libcxxabi was
'merged into libcxx', however, the commit message suggests that only
dynamic linking was accounted for, because it says:

```
* linux/freebsd `libc++.so` is a linker script `LINK(libc++.so.1, -lc++abi)` making `-lc++` sufficient.
```

Whereas, I found that if I tried linking a "hello world" C++ program
with a static hostPlatform, it failed unless -lc++abi was passed.

Signed-off-by: Peter Waller <p@pwaller.net>
2024-05-10 17:22:20 +02:00
..
atomics.cc tests.cc-wrapper: add atomics test 2023-11-16 00:23:56 +02:00
cc-main.c
cflags-main.c
core-foundation-main.c
cxx-main.cc
default.nix llvmPackages_*.libcxx: include libcxxabi within libcxx 2024-05-10 17:22:20 +02:00
foo.c
fortify1-example.c
fortify2-example.c
fortify3-example.c
hardening.nix
include-cxxabi.cc tests.cc-wrapper.supported: add test for cxxabi header 2023-09-18 06:43:36 +05:30
ldflags-main.c
multilib.nix
nostdinc-main.c
sanitizers.c
stdio.h