From 0adc7b49f4bf6aacff060b6e571f815c7d7252d3 Mon Sep 17 00:00:00 2001 From: ian Date: Fri, 25 Jul 2014 23:21:36 +0000 Subject: MFC r263373, r268402 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. Support CXXFLAGS.${MACHINE_ARCH} as well as CFLAGS. This allows different C++ options for toolchain versus target when cross-building. --- share/examples/etc/make.conf | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'share/examples') diff --git a/share/examples/etc/make.conf b/share/examples/etc/make.conf index 15eee8a..d52d518 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 -- cgit v1.1