MacOS – What build flags are available for brew install of gcc

gcchomebrewmacosterminal

I'm curious as to what build flags are available to me when installing gcc 4.8 using brew.

This question explains how to install gcc 4.8 using brew, but only specifies two possible flags i.e (--enable-cxx and --enable-fortran).

Is there a list of what's available or can someone iterate them for me?

If it matters I am running OS X 10.7.5 on the Intel i5 dual core.

Best Answer

Use brew options. On my machine I get this:

brew options gcc48
--enable-all-languages
        Enable all compilers and languages, except Ada
--enable-cxx
        Build the g++ compiler
--enable-fortran
        Build the gfortran compiler
--enable-java
        Buld the gcj compiler
--enable-multilib
        Build with multilib support
--enable-nls
        Build with native language support (localization)
--enable-objc 
        Enable Objective-C language support
--enable-objcxx
        Enable Objective-C++ language support
--enable-profiled-build
        Make use of profile guided optimization when bootstrapping GCC