about summary refs log tree commit diff
path: root/Makeconfig
diff options
context:
space:
mode:
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makeconfig b/Makeconfig
index 64886aee26..985c683f6e 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -649,6 +649,16 @@ endif	# $(+cflags) == ""
 # Don't duplicate options if we inherited variables from the parent.
 +cflags	:= $(sort $(+cflags))
 
+# These are the flags given to the compiler to tell it what sort of
+# optimization and/or debugging output to do for .S files.
+ifndef +asflags
+# If `ASFLAGS' was defined, use that.
+ifdef		ASFLAGS
++asflags := $(ASFLAGS)
+endif		#ASFLAGS
+endif	# +asflags
+
++asflags +=  $(asflags-cpu)
 
 # These are flags given to the C compiler to tell it to look for
 # include files (including ones given in angle brackets) in the parent
@@ -681,6 +691,8 @@ override CXXFLAGS = $(c++-sysincludes) \
 		    $(filter-out %frame-pointer,$(+cflags)) $(sysdep-CFLAGS) \
 		    $(CFLAGS-$(suffix $@)) $(CFLAGS-$(<F)) $(CFLAGS-$(@F))
 
+override ASFLAGS = $(+asflags)
+
 # If everything is compiled with -fPIC (implicitly) we must tell this by
 # defining the PIC symbol.
 ifeq (yes,$(build-pic-default))