aboutsummaryrefslogtreecommitdiff
path: root/Makeconfig
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 /Makeconfig
parent9921a880001f11280c8e165310ce8f65eecd5a42 (diff)
downloadglibc-073e82bfaeeb5624b2c85012a5582a1308ddae05.zip
glibc-073e82bfaeeb5624b2c85012a5582a1308ddae05.tar.gz
glibc-073e82bfaeeb5624b2c85012a5582a1308ddae05.tar.bz2
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 'Makeconfig')
-rw-r--r--Makeconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makeconfig b/Makeconfig
index 78852dc..b2c81e1 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -716,6 +716,12 @@ CPPFLAGS-.oS = $(CPPFLAGS-.o) -DPIC -DLIBC_NONSHARED=1
libtype.oS = lib%_nonshared.a
endif
+# The assembler can generate debug information too.
+ifndef ASFLAGS
+ifeq ($(have-cpp-asm-debuginfo),yes)
+ASFLAGS := $(filter -g%,$(CFLAGS))
+endif
+endif
+gnu-stabs = $(shell echo>&2 '*** BARF ON ME')