Question on compiling glibc

Tim Rühsen tim.ruehsen@gmx.de
Tue Dec 17 08:35:00 GMT 2019



On 12/17/19 8:46 AM, Jason Yang wrote:
> Dear developers:
> 
> Sorry for troubling you. I am not sure if it is okay for me to send
> inquiry email to this address.
> 
> Recently I am compiling glibc 2.23 on ubuntu 16.04 via the following
> commands:
> 
> configure --disable-sanity-checks CFLAGS="-O3" CC="gcc -s" && make
> 
> I expected to compile all libraries especially ld.so under stripped
> mode. But getting "not stripped" message using "file ld.so".
> 
> Where can I find document on describing such options? And how can I get
> it right?
> 
> Besides, the reason why I want it stripped because of libraries on my
> host are stripped. I checked them using "file" command.

Did you try CFLAGS="-O3 -s" CC="gcc" ?

BTW, if it's just a few files, you can also use the "strip" command.

Regards, Tim

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20191217/ac54e0e8/attachment.sig>


More information about the Libc-alpha mailing list