[EMAIL PROTECTED] ~ $ date ; echo ${Kurt V. Hindenburg}
Sunday 08 June 2003 02:51 am
> I noticed that with gcc -v I have
> -enable-languages=c,c++,ada,f77,objc
>
> All I want is c and c++; how to I go about setting this?
edit the ebuild ;-)
$ gcc -v
--enable-languages=c,c++
** KIDS, DON'T DO THIS AT HOME **
src_compile() {
local myconf=""
local gcc_lang=""
if [ -z "`use build`" ]
then
myconf="${myconf} --enable-shared"
gcc_lang="c,c++"
[ -n "`use ada`" ] && gcc_lang="${gcc_lang},ada"
[ -n "`use f77`" ] && gcc_lang="${gcc_lang},f77"
[ -n "`use objc`" ] && gcc_lang="${gcc_lang},objc"
[ -n "`use java`" ] && gcc_lang="${gcc_lang},java"
else
gcc_lang="c"
fi
if [ -z "`use nls`" ] || [ "`use build`" ]
then
myconf="${myconf} --disable-nls"
else
myconf="${myconf} --enable-nls --without-included-gettext"
fi
# In general gcc does not like optimization, and add -O2 where
.
.
.
Then, if you want ada do USE="ada" emerge gcc
HTH,
Norberto
pgp00000.pgp
Description: signature
