diff options
author | Roland McGrath <roland@gnu.org> | 2003-03-10 09:10:43 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2003-03-10 09:10:43 +0000 |
commit | 073e82bfaeeb5624b2c85012a5582a1308ddae05 (patch) | |
tree | aba52ca1e4971cceca20f86d36cc2f888b936ffb /Makeconfig | |
parent | 9921a880001f11280c8e165310ce8f65eecd5a42 (diff) | |
download | glibc-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 'Makeconfig')
-rw-r--r-- | Makeconfig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Makeconfig b/Makeconfig index 78852dc234..b2c81e1faa 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') |