svn commit: r443793 - head/lang/gcc7-devel
Jan Beich
jbeich at FreeBSD.org
Sun Jun 18 01:07:45 UTC 2017
Gerald Pfeifer <gerald at 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
More information about the svn-ports-head
mailing list