On Sat, 2018-07-21 at 18:52 +0200, Mark Wielaard wrote:
> The elfutils tools can demangle C++ symbols through the standard
> _cxa_demangle interface. The elfutils tools are written in C and
> so simply link with -lstdc++ to get access to __cxa_demangle.
> 
> There is a BuildRequires: libstdc++-devel in the elfutils.spec.
> But it looks like that isn't enough anymore to pull in libstdc++.so
> to build against.
> 
> It looks like that is provided through a symlink in gcc-c++.
> Should the elfutils.spec just BuildRequires: gcc-c++ instead of
> libstdc++-devel? Or is this a packaging/requires issue somewhere
> else?

Just in case anybody else is wondering what the correct answer is.
Whether libstdc++.so is provided by by gcc-c++ or libstdc++-devel is
architecture dependent. libstdc++-devel is there for multilib reasons.
You should just depend on gcc-c++ if you need to link against
libstdc++.so. Even if you don't use g++ to link against it. gcc-c++
requires libstdc++-devel.

Cheers,

Mark
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/ZK47BQOLXNLPNRYU6YTTOB246FXWEQK6/

Reply via email to