Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jun 2017 03:07:40 +0200
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Gerald Pfeifer <gerald@FreeBSD.org>
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r443793 - head/lang/gcc7-devel
Message-ID:  <d1a2-9k83-wny@FreeBSD.org>
In-Reply-To: <201706172327.v5HNRbGE015821@repo.freebsd.org> (Gerald Pfeifer's message of "Sat, 17 Jun 2017 23:27:37 %2B0000 (UTC)")
References:  <201706172327.v5HNRbGE015821@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Gerald Pfeifer <gerald@FreeBSD.org> writes:

> Author: gerald
> Date: Sat Jun 17 23:27:37 2017
> New Revision: 443793
> URL: https://svnweb.freebsd.org/changeset/ports/443793
>
> Log:
>   Update to the 20170615 snapshot of GCC 7.1.1.
>   
>   When we set STAGE1_CXXFLAGS / CXXFLAGS in MAKE_FLAGS for arm platforms,
>   do so incrementally (with += instead of =).

Did you mean to use MAKE_ENV instead of +=?

https://www.gnu.org/software/make/manual/html_node/Overriding.html

$ cat Makefile
CXXFLAGS += -ffoo
all:
	@echo $(CXXFLAGS)

$ gmake
-ffoo

# MAKE_ARGS test

$ gmake CXXFLAGS=-fbracket-depth=512
-fbracket-depth=512

$ gmake CXXFLAGS+=-fbracket-depth=512
-fbracket-depth=512

$ gmake CXXFLAGS=-fbar CXXFLAGS=-fbracket-depth=512
-fbracket-depth=512

$ gmake CXXFLAGS=-fbar CXXFLAGS+=-fbracket-depth=512
-fbar -fbracket-depth=512

# MAKE_ENV test

$ CXXFLAGS=-fbracket-depth=512 gmake
-fbracket-depth=512 -ffoo

$ CXXFLAGS+=-fbracket-depth=512 gmake
sh: CXXFLAGS+=-fbracket-depth=512: not found

$ CXXFLAGS=-fbar CXXFLAGS=-fbracket-depth=512 gmake
-fbracket-depth=512 -ffoo

$ CXXFLAGS=-fbar CXXFLAGS+=-fbracket-depth=512 gmake
sh: CXXFLAGS+=-fbracket-depth=512: not found



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d1a2-9k83-wny>