Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18052 - Wish: USE flags for ada, f77, and objc
Summary: Wish: USE flags for ada, f77, and objc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 23171 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-03-23 14:15 UTC by Norberto Bensa
Modified: 2015-05-21 08:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Norberto Bensa 2003-03-23 14:15:05 UTC
Hello, 
 
I'd like to compile _only_ the languages I'll use, i.e., c and c++. I've never seen ada, 
f77, nor objc so building those compilers is a waste of time in my case. I'd like to see 
use flags for ada, f77, and objc. 
 
Thanks for reading, 
Norberto 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jeffrey Lim 2003-03-23 21:28:32 UTC
please keep a watch also on http://forums.gentoo.org/viewtopic.php?t=42821 , which 
was the thread that started it all regarding discussion on this. 
 
-konqueror 
Comment 2 Zhen Lin 2003-03-24 02:00:36 UTC
src_compile() {
        local myconf=""
        local gcc_lang=""

        if [ -z "`use build`" ]
        then
                myconf="${myconf} --enable-shared"
                gcc_lang="c,c++"

                [ -n "`use noada`" ]  || gcc_lang="${gcc_lang},ada"
                [ -n "`use nof77`" ]  || gcc_lang="${gcc_lang},f77"
                [ -n "`use noobjc`" ] || 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

The USE variable should disable the languages, in order to maintain compatibility.
Comment 3 David Philippi 2003-09-27 04:53:15 UTC
I support the wish to remove support for Fortran77 and ObjC by a USE flag
if they are not needed (ada seems to be gone anyway).
I'd also like to see a spearate USE flag for gcj. Activating it through java
seems strange since that's about hava a jdk or jre installed IMO. Gcj on
the other hand is something that few people will have any use of so far,
since it doesn't compile most programs yet.
Comment 4 SpanKY gentoo-dev 2004-04-25 13:21:48 UTC
*** Bug 23171 has been marked as a duplicate of this bug. ***
Comment 5 SpanKY gentoo-dev 2004-04-25 13:22:20 UTC
this can be found in latest masked gcc-3.3.3-r2