Re: What to BuildRequire for libstdc++.so __cxa_demangle?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx/message/ZK47BQOLXNLPNRYU6YTTOB246FXWEQK6/




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux