Re: Reducing size of GCC installation?

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

 



Hi!

On Tue, Aug 04, 2020 at 07:26:09PM +0000, Thompson, Matt (GSFC-610.1)[SCIENCE SYSTEMS AND APPLICATIONS INC] via Gcc-help wrote:
> To wit, I'm trying to build some Docker images and found that the code I'm eventually trying to build with gcc (gfortran, actually) doesn't like the versions from RPMs/DEBs/etc. So, my first step is usually to do what I'm quite used to and build GCC a la:
> 
>   ../gcc-10.2.0/configure --prefix=$HOME/GCC/10.2.0 --disable-multilib --enable-languages=c,c++,fortran
>   make
>   make install
> 
> and this works. Huzzah.

make install-strip

> Ouch. 1.6G.

How much does install-strip safe?

> Or perhaps is there a configure option to "ensmallen GCC" upon installation?

Yes :-)  It is documented on

https://gcc.gnu.org/install/finalinstall.html

There may be other tricks in the installation manual you missed as well?

Good luck and have fun,


Segher



[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