bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linuxthreads and --enable-omitfp


From: Flavio Veloso
Subject: Linuxthreads and --enable-omitfp
Date: Wed, 19 Mar 2003 13:12:18 -0300 (BRT)

Hi.

Anyone managed to build a working glibc 2.3.x with --enable-omitfp? My
builds caused all executables linked to libpthreads to crash with a
SEGV. make check also also didn't complete due to random crashes. I'm
using gcc 3.2.2 and binutils 2.13.2.1 (HJ's also didn't work, though).

The following patch disable -fomit-frame-pointer entirely when
building linuxthread, while still allowing all other libraries to be
built without frame pointer. After applying it I was able to build and
install glibc 2.3.2 with --enable-omitfp successfully. All
applications linked to lipthreads now work and "make check" did
complete without failures.

--- glibc-2.3.2/linuxthreads/Makefile.noomitfp  Fri Feb 21 22:01:16 2003
+++ glibc-2.3.2/linuxthreads/Makefile   Sat Mar 15 15:48:44 2003
@@ -73,6 +73,11 @@
 others: $(objpfx)libpthread_nonshared.a
 endif

+ifeq ($(build-omitfp),yes)
+CFLAGS-.o := $(filter-out -fomit-frame-pointer, $(CFLAGS-.o))
+CFLAGS-.os := $(filter-out -fomit-frame-pointer, $(CFLAGS-.os))
+endif
+
 $(objpfx)libpthread_nonshared.a: $(addprefix $(objpfx),$(addsuffix 
.os,$(libpthread-nonshared)))
        $(AR) $(ARFLAGS) $@ $^


-- 
Flávio





reply via email to

[Prev in Thread] Current Thread [Next in Thread]