how to only configure and build C in GCC 3.0?
David O'Brien
obrien@FreeBSD.org
Tue Aug 14 18:19:00 GMT 2001
>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)
More information about the Gcc
mailing list