Gentoo Archives: gentoo-dev

From: Spider <spider@g.o>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Problem with Zangband ebuild
Date: Sun, 07 Apr 2002 11:45:27
Message-Id: 20020407183922.051acbb7.spider@gentoo.org
In Reply to: Re: [gentoo-dev] Problem with Zangband ebuild by Malte Obbel Forsberg
1 if you use an ebuild, /etc/make.conf gets sourced automatically :)
2
3 and, you dont need to use CXXFLAGS unless Zangband uses c++ code. only
4 use CFLAGS in normal C code and all should be ok.
5
6 //Spider
7
8
9 begin quote
10 On Sun, 7 Apr 2002 11:59:28 +0200
11 Malte Obbel Forsberg <door@×××××××××××.nu> wrote:
12
13 > Oh .. I've got it all wrong then! :-P
14 > Anywhoo, if I do a "source /etc/make.conf", patch the makefile so that
15 > it will have a line like: gcc $(CFLAGS) $(CXXFLAGS)
16 > $(BLAH_OLD_SETTINGS) it'll compile with the flags configured in
17 > make.conf?
18 >
19 > Thanks,
20 > Malte
21 >
22 > > Actually,
23 > > the "CHOST" flag is -not- for optimization.
24 > > that is the purpouse of "CFLAGS" and "CXXFLAGS" to do.
25 > >
26 > > The CHOST flags is only there in order to let the
27 > > makefiles/configure identify the system "properly" especially for
28 > > cross-platform building.
29 > >
30 > > in the case of wanting something optimized you can safely discard
31 > > CHOST and only use CFLAGS / CXXFLAGS.
32 > >
33 > >
34 > > and, what I meant is that /etc/make.conf is bash compatible, meaning
35 > > that if you just "source /etc/make.conf" it will sett
36 > > CHOST,CFLAGS,CXXFLAGS and other such things to the system default.
37 > > usable if you are in /var/tmp/portage/package/work/package/... and
38 > > debugging just what goes wrong somewhere ;) (configure flags and
39 > > incompabilities spring to mind)
40 > >
41 > > //Spider
42 > >
43 > > --
44 > > begin happy99.exe
45 > > This is a .signature virus! Please copy me into your .signature!
46 > > See Microsoft KB Article Q265230 for more information.
47 > > end
48 > >
49 >
50 >
51 > --
52 > Malte Obbel Forsberg
53 > door@×××××××××××.nu
54 > JabberId: doordoc@××××××.at
55 > UIN: 12035285
56 > _______________________________________________
57 > gentoo-dev mailing list
58 > gentoo-dev@g.o
59 > http://lists.gentoo.org/mailman/listinfo/gentoo-dev
60
61
62 --
63 begin happy99.exe
64 This is a .signature virus! Please copy me into your .signature!
65 See Microsoft KB Article Q265230 for more information.
66 end