* [gentoo-dev] impending gcc-config doom
@ 2004-10-13 13:25 Mike Frysinger
2004-10-14 8:35 ` Tom Payne
0 siblings, 1 reply; 7+ messages in thread
From: Mike Frysinger @ 2004-10-13 13:25 UTC (permalink / raw
To: gentoo-dev
i like the word 'doom', it's neat ... but enough about me, let's talk about
gcc-config
http://bugs.gentoo.org/show_bug.cgi?id=44731
the next version of gcc-config will be honouring this and gcc itself will no
longer be exporting CC/CXX via env.d
that means all you people out there who wrote broken ebuilds with the broken
${CC}/${CXX} syntax are doomed ! convert today to the gcc.eclass and ye
shall be saved !
sed -i 's:${CC}:$(gcc-getCC):'
${CC:-gcc} is also wrong and will only succeed in making Him smite you
thank you
-mike
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] impending gcc-config doom
2004-10-13 13:25 [gentoo-dev] impending gcc-config doom Mike Frysinger
@ 2004-10-14 8:35 ` Tom Payne
2004-10-14 9:20 ` Patrick Kursawe
2004-10-14 13:04 ` Mike Frysinger
0 siblings, 2 replies; 7+ messages in thread
From: Tom Payne @ 2004-10-14 8:35 UTC (permalink / raw
To: gentoo-dev
On Wed, Oct 13, 2004 at 09:25:37AM -0400, Mike Frysinger wrote:
> http://bugs.gentoo.org/show_bug.cgi?id=44731
> the next version of gcc-config will be honouring this and gcc itself will no
> longer be exporting CC/CXX via env.d
>
> that means all you people out there who wrote broken ebuilds with the broken
> ${CC}/${CXX} syntax are doomed ! convert today to the gcc.eclass and ye
> shall be saved !
> sed -i 's:${CC}:$(gcc-getCC):'
Is there an equivalent for g++?
Currently media-gfx/sam2p uses
CXX="$(gcc-config -B)/g++"
but presumably there's a better way.
Cheers,
--
Tom
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] impending gcc-config doom
2004-10-14 8:35 ` Tom Payne
@ 2004-10-14 9:20 ` Patrick Kursawe
2004-10-14 13:03 ` Mike Frysinger
2004-10-14 13:04 ` Mike Frysinger
1 sibling, 1 reply; 7+ messages in thread
From: Patrick Kursawe @ 2004-10-14 9:20 UTC (permalink / raw
To: gentoo-dev
On Wed, Oct 13, 2004 at 09:25:37AM -0400, Mike Frysinger wrote:
> http://bugs.gentoo.org/show_bug.cgi?id=44731
> the next version of gcc-config will be honouring this and gcc itself will no
> longer be exporting CC/CXX via env.d
>
> that means all you people out there who wrote broken ebuilds with the broken
> ${CC}/${CXX} syntax are doomed ! convert today to the gcc.eclass and ye
> shall be saved !
> sed -i 's:${CC}:$(gcc-getCC):'
Perhaps changing flag-o-matic accordingly would be a good idea?
Just wondering,
Patrick
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] impending gcc-config doom
2004-10-14 9:20 ` Patrick Kursawe
@ 2004-10-14 13:03 ` Mike Frysinger
2004-10-14 14:01 ` Patrick Kursawe
0 siblings, 1 reply; 7+ messages in thread
From: Mike Frysinger @ 2004-10-14 13:03 UTC (permalink / raw
To: gentoo-dev
On Thursday 14 October 2004 05:20 am, Patrick Kursawe wrote:
> Perhaps changing flag-o-matic accordingly would be a good idea?
flag-o-matic has nothing to do with this, these arent flags
use gcc.eclass (man gcc.eclass) or use the new toolchain-functions.eclass (no
documentation yet, PHEAR IT)
-mike
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] impending gcc-config doom
2004-10-14 8:35 ` Tom Payne
2004-10-14 9:20 ` Patrick Kursawe
@ 2004-10-14 13:04 ` Mike Frysinger
1 sibling, 0 replies; 7+ messages in thread
From: Mike Frysinger @ 2004-10-14 13:04 UTC (permalink / raw
To: gentoo-dev
On Thursday 14 October 2004 04:35 am, Tom Payne wrote:
> Is there an equivalent for g++?
>
> Currently media-gfx/sam2p uses
> CXX="$(gcc-config -B)/g++"
> but presumably there's a better way.
ugh, that is horribly wrong ;)
the correct method is:
inherit gcc
CXX="$(gcc-getCXX)"
or (since we're moving away from gcc.eclass):
inherit toolchain-functions
CXX="$(tc-getCXX)"
-mike
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] impending gcc-config doom
2004-10-14 13:03 ` Mike Frysinger
@ 2004-10-14 14:01 ` Patrick Kursawe
2004-10-14 14:17 ` Mike Frysinger
0 siblings, 1 reply; 7+ messages in thread
From: Patrick Kursawe @ 2004-10-14 14:01 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 746 bytes --]
On Thu, Oct 14, 2004 at 09:03:14AM -0400, Mike Frysinger wrote:
> On Thursday 14 October 2004 05:20 am, Patrick Kursawe wrote:
> > Perhaps changing flag-o-matic accordingly would be a good idea?
>
> flag-o-matic has nothing to do with this, these arent flags
>
> use gcc.eclass (man gcc.eclass) or use the new toolchain-functions.eclass (no
> documentation yet, PHEAR IT)
$ grep -n '${CC' /usr/portage/eclass/flag-o-matic.eclass
267: local cc=${CC:-gcc} ; cc=${cc%% *}
276: local cc=${CC:-gcc} ; cc=${cc%% *}
350: ${CC/ .*/} -m64 -o /dev/null ${temp}.c > /dev/null 2>&1
364: ${CC/ .*/} -m32 -o /dev/null ${temp}.c > /dev/null 2>&1
Looks exactly like what you said shouldn't be done, doesn't it?
Bye, Patrick
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-dev] impending gcc-config doom
2004-10-14 14:01 ` Patrick Kursawe
@ 2004-10-14 14:17 ` Mike Frysinger
0 siblings, 0 replies; 7+ messages in thread
From: Mike Frysinger @ 2004-10-14 14:17 UTC (permalink / raw
To: gentoo-dev
On Thursday 14 October 2004 10:01 am, Patrick Kursawe wrote:
> Looks exactly like what you said shouldn't be done, doesn't it?
ah yes, good catch ... i thought you were saying the functions should be added
to flag-o-matic, not that flag-o-matic was broken
thanks :)
-mike
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-10-14 14:17 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-13 13:25 [gentoo-dev] impending gcc-config doom Mike Frysinger
2004-10-14 8:35 ` Tom Payne
2004-10-14 9:20 ` Patrick Kursawe
2004-10-14 13:03 ` Mike Frysinger
2004-10-14 14:01 ` Patrick Kursawe
2004-10-14 14:17 ` Mike Frysinger
2004-10-14 13:04 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox