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 e4c6184c95b1df153596e4f3b7a2335f1a28cda8..23aef0666682496fac4c04f721c11c9fed787852 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     \