pkg-config should ask for libc++ instead, or nothing? Linkers just provides the standard lib automagically right?
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
I'm not a C++ person (I'm trying to use the libraw rust crate), but apparently libstdc++ isn't supported by Apple.
I think the problem lies in libraw explicitly asking for libstdc++ in their build scripts. This was brought up (and pretty much ignored) to libraw maintainers: https://github.com/LibRaw/LibRaw/issues/248
I'd be happy to add a patch similar to the one from macports (this is easy enough for me to understand). The ideal approach would be to patch the upstream with something portable, but I have no idea what that entails.
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
Describe the bug
pkg-config --libs libraw
asks forlibstdc++
, but it should be asking forlibc++
on darwin.Steps To Reproduce
Steps to reproduce the behavior:
nix-shell -p pkg-config libraw --run 'pkg-config --libs libraw'
Expected behavior
pkg-config
should ask forlibc++
instead, or nothing? Linkers just provides the standard lib automagically right?Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
I'm not a C++ person (I'm trying to use the libraw rust crate), but apparently
libstdc++
isn't supported by Apple.I think the problem lies in libraw explicitly asking for
libstdc++
in their build scripts. This was brought up (and pretty much ignored) to libraw maintainers: https://github.com/LibRaw/LibRaw/issues/248Macports applies this patch to fix the issue: https://github.com/macports/macports-ports/blob/master/graphics/libraw/files/patch-libraw-no-libstdcxx.diff
Homebrew doesn't have such a patch, and I can confirm it's also broken this way: https://github.com/Homebrew/homebrew-core/blob/84fb6d8673d87eb06ee9db7cfb8631b9bd5a03c3/Formula/lib/libraw.rb
Notify maintainers
This package has no maintainers.
:(I'd be happy to add a patch similar to the one from macports (this is easy enough for me to understand). The ideal approach would be to patch the upstream with something portable, but I have no idea what that entails.
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.