build gcc on os-x with fortran only

Jeff Law law@redhat.com
Sun Nov 8 00:40:00 GMT 2015


On 11/07/2015 02:38 PM, Denis Davydov wrote:
> Dear all,
>
> I am trying to build GCC with fortran language only on OS-X by
>
> ./configure --prefix=${INSTALL_HERE} \
> --enable-checking=release \
> --disable-stage1-checking \
> --enable-languages=fortran \
> --disable-cloog-version-check \
> --disable-isl-version-check \
> --disable-libstdcxx \
> --enable-lto \
> --disable-nls \
> --with-gmp="${GMP_DIR}" \
> --with-mpc="${MPC_DIR}" \
> --with-mpfr="${MPFR_DIR}" \
> --with-cloog="${CLOOG_DIR}" \
> --with-isl="${ISL_DIR}”
>
> Even though i set `--enable-languages=fortran` the configure results in:
>
> The following languages will be built: c,c++,fortran,lto
>
>
> Is there any way to make it build fortran only? That’s the only thing i need on OS-X
> and I would rather prefer not to have GNU C/C++ compilers in paths.
Nope.  C & C++ are mandatory for the build procedure.  LTO is in there 
because of the --enable-lto.


Jeff



More information about the Gcc-help mailing list