[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-port-arm
Subject:    Re: NetBSD-7 build issues with earmv7hf
From:       Rich Neswold <rich.neswold () gmail ! com>
Date:       2016-08-03 14:50:09
Message-ID: CAGT4q5pAVzgJP-XS8AiC+mL4XGg8mdYpu4Esc7y_KFQ+gk-MOQ () mail ! gmail ! com
[Download RAW message or body]

On Sun, Jul 10, 2016 at 4:34 AM, Sad Clouds
<cryintothebluesky@googlemail.com> 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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic