This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiling only libstdc++-v3 (with debugging symbols)


On 19 October 2011 17:50, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> On 19 October 2011 17:48, Jonathan Wakely wrote:
>>
>> Why? ÂI've not heard of anyone trying to build only libstdc++ before,

My reason is simply that I wanted libstdc++ with debugging symbols on
my machine as my distro (Arch Linux) seems to strip them. It seems
perfectly reasonable to me to want to build only libstdc++ and not the
whole gcc project because building the whole project is a complete
waste of time seeing as I already have the other binaries compiled on
my system from my distribution's packages.

However as Ian very helpfully pointed out, I can only do this if I
have the source code for libstdc++ that matches the version of g++ on
my system. In other words I need to use the same source that my distro
used to build my packages. It turned out my distribution requires me
to modify the script that builds the gnu-libs package to not strip the
debugging symbols, then compile, rebuild the gnu-libs package and then
install this package. I did this and it showed quite nicely how my
distribution builds its package containing libstdc++ .

Dan.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]