chiark / gitweb /
[PATCH] udev* segfaults with new klibc
authorolh@suse.de <olh@suse.de>
Fri, 12 Mar 2004 09:06:55 +0000 (01:06 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:35:09 +0000 (21:35 -0700)
current klibc uses regparm on i386. This leads to nice segfaults in all
udev apps. Using the content of the just included MCONFIG file fixes it.

Makefile

index e4c6184..23aef06 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -155,6 +155,7 @@ ifeq ($(strip $(USE_KLIBC)),true)
        CRT0 = $(KLIBC_DIR)/crt0.o
        LIBC =  $(ARCH_LIB_OBJS) $(LIB_OBJS) $(CRT0)
        CFLAGS += $(WARNINGS) -nostdinc                 \
+               $(OPTFLAGS)                             \
                -D__KLIBC__ -fno-builtin-printf         \
                -I$(INCLUDE_DIR)                        \
                -I$(KLIBC_DIR)/arch/$(ARCH)/include     \