summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-03-10 09:10:43 +0000
committerRoland McGrath <roland@gnu.org>2003-03-10 09:10:43 +0000
commit073e82bfaeeb5624b2c85012a5582a1308ddae05 (patch)
treeaba52ca1e4971cceca20f86d36cc2f888b936ffb /Makerules
parent9921a880001f11280c8e165310ce8f65eecd5a42 (diff)
downloadglibc-073e82bfaeeb5624b2c85012a5582a1308ddae05.tar.gz
2003-03-10 Roland McGrath <roland@redhat.com>
* configure.in: New check for -g on .S files. * configure: Regenerated. * config.make.in (have-cpp-asm-debuginfo): New variable. * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef. * Makeconfig (ASFLAGS): New variable, if undefined and $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS). * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makerules b/Makerules
index c4a28ae8bd..1b57e29553 100644
--- a/Makerules
+++ b/Makerules
@@ -396,8 +396,10 @@ endif
# GCC can grok options after the file name, and it looks nicer that way.
compile.c = $(CC) $< -c $(CFLAGS) $(CPPFLAGS)
-compile.S = $(CC) $< -c $(CPPFLAGS) $(S-CPPFLAGS) $(ASFLAGS-$(suffix $@))
-COMPILE.S = $(CC) -c $(CPPFLAGS) $(S-CPPFLAGS) $(ASFLAGS-$(suffix $@))
+compile.S = $(CC) $< -c $(CPPFLAGS) $(S-CPPFLAGS) \
+ $(ASFLAGS) $(ASFLAGS-$(suffix $@))
+COMPILE.S = $(CC) -c $(CPPFLAGS) $(S-CPPFLAGS) \
+ $(ASFLAGS) $(ASFLAGS-$(suffix $@))
COMPILE.s = $(filter-out -pipe,$(CC)) -c $(ASFLAGS)
# If we want to generate MD5 checksums for the sources do this now.