[kris@FreeBSD.org: cvs commit: ports/devel/avr-libc Makefile]
John Baldwin
jhb at FreeBSD.org
Tue May 20 14:47:25 PDT 2003
On 18-May-2003 Kris Kennaway wrote:
> On Sun, May 18, 2003 at 09:35:41PM +0200, Joerg Wunsch wrote:
>> As Joerg Wunsch wrote:
>>
>> > > > FYI. Please see http://bento.freebsd.org/errorlogs/i386-5-full/ for
>> > > > the failure log.
>> > >
>> > > There is no failure log for avr-libc. So what?
>> >
>> > I see that the last update timestamp on the above URL is May 06, so
>> > perhaps you've got a more recent log somewhere?
>>
>> OK, i found the log on bento.
>>
>> It still tries to apply that @$%!&ing CPU CFLAG crap to my cross
>> compilation. I'm sick of that pessimization now!
>>
>> I've already got
>>
>> MAKE_ENV= NO_CPU_CFLAGS=true
>>
>> in avr-libc/Makefile (long since), that is what i have been told would
>> do the trick to get around that braindeadness.
>
> It looks like jhb added the default -mcpu=pentiumpro to CFLAGS in
> r1.13 of bsd.cpu.mk, and it doesn't check for NO_CPU_CFLAGS as it
> should. John, can you please investigate this? It is breaking a
> number of cross-compilers in the ports collection.
It only modifies _CPUCFLAGS:
_CPUCFLAGS = -mcpu=pentiumpro
Which as you can see at the bottom of bsd.cpu.mk:
.if !defined(NO_CPU_CFLAGS)
CFLAGS += ${_CPUCFLAGS}
.endif
Thus it is quite responsive to NO_CPU_CFLAGS:
> make -V CFLAGS CPUTYPE=""
-O -pipe -mcpu=pentiumpro
> make -V CFLAGS CPUTYPE="" NO_CPU_CFLAGS=1
-O -pipe
--
John Baldwin <jhb at FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!" - http://www.FreeBSD.org/
More information about the freebsd-ports
mailing list