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, Jul 10, 2016 at 4:34 AM, Sad Clouds
<cryintothebluesky%googlemail.com@localhost> wrote:
>
> 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.
I had to do this:
COPTS.tmp:= ${COPTS}
COPTS= -O2 ${COPTS.tmp}
(note the ":=" instead of "=") Otherwise I was getting "recursive
definition of COPTS" errors.
--
Rich
Home |
Main Index |
Thread Index |
Old Index