This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
how to only configure and build C in GCC 3.0?
- To: gcc at gcc dot gnu dot org
- Subject: how to only configure and build C in GCC 3.0?
- From: "David O'Brien" <obrien at FreeBSD dot org>
- Date: Tue, 14 Aug 2001 18:19:10 -0700
- Organization: The NUXI BSD group
- Reply-To: obrien at FreeBSD dot org
>From gcc-3.0/INSTALL/configure.html
--enable-languages=lang1,lang2,...
Specify that only a particular subset of compilers and their
runtime libraries should be built. For a list of valid values for
langN you can issue the following command in the gcc directory of
your GCC source tree:
grep language= */config-lang.in
However with "--enable-languages=c" `make cross' still attempts to build
c++:
gcc -DCROSS_COMPILE -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -o tradcpp0 \
tradcpp.o tradcif.o mkdeps.o cppdefault.o version.o intl.o obstack.o
./intl/libintl.a ../libiberty/libiberty.a
gmake[1]: *** No rule to make target `c++', needed by `native'. Stop.
gmake[1]: Leaving directory `/tmp/gcc-3.0/o/gcc'
gmake: *** [cross] Error 2
--
-- David (obrien@FreeBSD.org)