[PATCH] Autoconf check for DWARF2 unwind info support

Greg Schafer gschafer@zip.com.au
Mon Jan 5 02:27:00 GMT 2004


Hi

Ok, it's only minor, but this autoconf check does not clean up after itself
on my systems. It typically leaves some rubbish in /tmp:

$ l /tmp/cc*
-rw-------    1 gws      gws             0 Jan  5 13:11 /tmp/ccIMsGTj.o
-rw-------    1 gws      gws           274 Jan  5 13:11 /tmp/ccJVCcLo.ld
-rw-------    1 gws      gws             0 Jan  5 13:11 /tmp/ccbRT51e.c
$ cat /tmp/ccJVCcLo.ld
/tmp/cc0rnc7h.o(.text+0xf): In function `_start':
/home/gws/src/temp/cc/glibc-build/configure:5964: undefined reference to `__register_frame_info'
/tmp/cc0rnc7h.o(.text+0x1c):/home/gws/src/temp/cc/glibc-build/configure:5965: undefined reference to `__deregister_frame_info'


Here's the fix:

--- configure.in.gws    2003-11-12 11:37:03.000000000 +1100
+++ configure.in        2004-01-05 13:15:07.305483584 +1100
@@ -1670,7 +1670,7 @@
    AC_TRY_COMMAND([$libc_unwind_check -lgcc_eh -lgcc >&AS_MESSAGE_LOG_FD])
 then
   if $libc_unwind_check -v 2>&1 >/dev/null \
-     | grep -q -- --eh-frame-hdr; then
+     | grep -- --eh-frame-hdr 2>&1 >/dev/null; then
     libc_cv_gcc_dwarf2_unwind_info=no_registry_needed
   else
     libc_cv_gcc_dwarf2_unwind_info=static


Thanks
Greg



More information about the Libc-alpha mailing list