Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD-7 build issues with earmv7hf



On Sun, 10 Jul 2016 11:06:25 +0200
Martin Husemann <martin%duskware.de@localhost> wrote:

> On Sun, Jul 10, 2016 at 09:54:26AM +0100, Sad Clouds wrote:
> > Without setting COPTS in mk.conf results in "-O2" being passed to
> > GCC, which builds correctly
> 
> This is from src/sys/conf/Makefile.kern.inc:
> 
> DEFCOPTS?=      -O2
> COPTS?=         ${DEFCOPTS}
> 
> and fixing this gets tricky.
> 
> > So trying to build vfp_init.c without GCC optimization flags will
> > fail for some reason:
> 
> ... and this is a second bug.
> 
> Martin

Why you say it gets tricky? Will this fix it

COPTS.tmp=${COPTS}
COPTS=-O2 ${COPTS.tmp}

So if someone has "COPTS+=-pipe -Os", then -Os will always override -O2

I assume make variables behave similar to shell variables.


Home | Main Index | Thread Index | Old Index