mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
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.
This commit is contained in:
parent
1afb8884a7
commit
44653522f6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=263373
@ -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
|
||||
|
@ -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}}
|
||||
|
Loading…
Reference in New Issue
Block a user