Re: GCC Build Defaults to Debug Mode?

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

 



On Fri, 2017-01-13 at 14:53 +0100, Georg-Johann Lay wrote:
> On 11.01.2017 19:23, Marc Glisse wrote:
> >
> > https://gcc.gnu.org/install/finalinstall.html has an answer for that.
> 
> Does "make install-strip" work now?  IIRC it is froken for some reason.
> 

It appears to mostly work:

[lib64]$ file libstdc++.so.6.0.20
libstdc++.so.6.0.20: ELF 64-bit LSB shared object, x86-64, version 1
(SYSV), dynamically linked, stripped

[lib64]$ file * | grep '\.so' | grep not
libgcc_s.so.1:              ELF 64-bit LSB shared object, x86-64,
version 1 (SYSV), dynamically linked, not stripped


Of all SO's built by GCC, only libgcc_s.so.1 is not stripped.  Not sure
why.

I tried to manually strip it but I'm not sure it's working:

[lib64]$ file libgcc_s.so.1
libgcc_s.so.1: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV),
dynamically linked, not stripped

[lib64]$ objcopy --strip-debug libgcc_s.so.1

[lib64]$ file libgcc_s.so.1
libgcc_s.so.1: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV),
dynamically linked, not stripped


Incidentally, I noticed that other open source libraries (libxml2,
libxml++ to name 2) also have this "make install-strip" target.  I
suspect it's generated by autoconf and/or friends.  I verified that
using it generates stripped SO's.





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux