This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: Question on compiling glibc



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

Attachment: signature.asc
Description: OpenPGP digital signature


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