PATCH (revised) for gcc34 (for building ports)
YONETANI Tomokazu
qhwt+dfly at les.ath.cx
Tue Apr 26 08:08:01 PDT 2005
On Sat, Apr 16, 2005 at 06:16:39AM -0700, walt wrote:
> >Can't you do this with a wrapper? All of these above can be tweaked
> >by overriding the specs.
> >
> >$ CCVER=gcc2 gcc -dumpspecs | grep -A1 predefines | tee predefines
> >*predefines:
> >-Di386 -Acpu(i386) -Amachine(i386) -D__DragonFly__=1
> >-D__DragonFly_cc_version=100001 -D__FreeBSD__=4
> >-D__FreeBSD_cc_version=460001 -Dunix -Asystem(unix) -Asystem(FreeBSD)
> >-Asystem(DragonFly)
> >$ CCVER=gcc34 -dumpspecs > ~/specs34
>
> I always learn a lot when I read your posts :o) From playing around
> with the ideas you suggested I notice that the behavior of -dumspecs
> seems to be different for the two compilers: the predefines are
> printed out for gcc2 but not for gcc34, apparently. Any idea why?
No, and I didn't realize that this stopped working until now.
I'm sorry about the noise.
> Also, as I said in my previous post, the gcc34 from the ports seems
> to work much better at compiling ports than my patched system gcc34,
> and it predefines only __FreeBSD_=4.
Ah, apparently I overlooked that part. But I imagine that,
even if they compile fine, the compiled ports may not work
correctly and will surprise you later(I can't remember which ones
though).
More information about the Submit
mailing list