summaryrefslogtreecommitdiffstats
path: root/share/examples
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/examples
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/examples')
-rw-r--r--share/examples/etc/make.conf7
1 files changed, 7 insertions, 0 deletions
diff --git a/share/examples/etc/make.conf b/share/examples/etc/make.conf
index 19be713..fccf98d 100644
--- a/share/examples/etc/make.conf
+++ b/share/examples/etc/make.conf
@@ -60,6 +60,12 @@
# nonstandard optimization settings
# before submitting bug reports without patches to the developers.
#
+# CFLAGS.arch provides a mechanism for applying 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.
+#
# CXXFLAGS controls the compiler settings used when compiling C++ code.
# Note that CXXFLAGS is initially set to the value of CFLAGS. If you wish
# to add to CXXFLAGS value, "+=" must be used rather than "=". Using "="
@@ -71,6 +77,7 @@
#
# CFLAGS+= -msse3
# CXXFLAGS+= -msse3
+# CFLAGS.armv6+= -mfloat-abi=softfp
#
# MAKE_SHELL controls the shell used internally by make(1) to process the
# command scripts in makefiles. Three shells are supported, sh, ksh, and
OpenPOWER on IntegriCloud