summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.cpu.mk
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-03-19 18:54:53 +0000
committerian <ian@FreeBSD.org>2014-03-19 18:54:53 +0000
commit4dab4f506a4969da83991fb3b855e9bb9f30077d (patch)
tree4b1fa2bf2bcfa8c4965e9f463a39665a9563dbce /share/mk/bsd.cpu.mk
parent950492bae5c80c8d09839f2e1e4726550e5198f3 (diff)
downloadFreeBSD-src-4dab4f506a4969da83991fb3b855e9bb9f30077d.zip
FreeBSD-src-4dab4f506a4969da83991fb3b855e9bb9f30077d.tar.gz
Add a way to apply CFLAGS only when building the given architecture. This
is useful primarily on a system used for cross-building, when you have a set of flags to apply to the TARGET_ARCH being cross-built but don't want those settings applied to building the cross-tools or other components that run on the build host machine.
Diffstat (limited to 'share/mk/bsd.cpu.mk')
-rw-r--r--share/mk/bsd.cpu.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk
index caf8340..6b1a06e 100644
--- a/share/mk/bsd.cpu.mk
+++ b/share/mk/bsd.cpu.mk
@@ -260,3 +260,7 @@ CFLAGS += -G0
.if !defined(NO_CPU_CFLAGS)
CFLAGS += ${_CPUCFLAGS}
.endif
+
+# Add in any architecture-specific CFLAGS.
+# These come from make.conf or the command line or the environment.
+CFLAGS += ${CFLAGS.${MACHINE_ARCH}}
OpenPOWER on IntegriCloud