What is gcc -s option?

Tushar Teredesai tushar at linuxfromscratch.org
Wed Jan 8 21:40:33 PST 2003


Albert Wagner wrote:

>On Thursday 09 January 2003 5:06 am, Tushar Teredesai wrote:
>  
>
>>Allen Parker wrote:
>>    
>>
>>>It tells gcc to compile statically
>>>      
>>>
>>Nope. Check out
>><http://gcc.gnu.org/onlinedocs/gcc-3.2.1/gcc/Link-Options.html#Link
>>%20Options>. -s is used to strip the resulting executables.
>>    
>>
>My host is LFS 3.3 and I'm compiling with 2.95.3. There is no word 
>"strip" in the man file, nor any option -s. Yet, the LFS 4.0 book 
>uses this option to compile the static packages.  
>  
>
Here is the link for gcc-2.95.3 
<http://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_2.html#SEC13>.

The book also mentions why CC is set to "gcc -s". Check out 
<http://www.linuxfromscratch.org/view/cvs/chapter05/settingenviron.html>.

-- 
Tushar Teredesai
   http://www.linuxfromscratch.org/~tushar/
   http://www.geocities.com/tushar/


-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list