chiark / gitweb /
[PATCH] Add -nodefaultlibs while compiling against klibc
authormort@wildopensource.com <mort@wildopensource.com>
Tue, 2 Dec 2003 08:59:36 +0000 (00:59 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:13:04 +0000 (21:13 -0700)
This patch adds -nodefaultlibs to LDFLAGS when compiling udev against
klibc.  This fixes the warning that I was getting when using $(LD)=gcc
in the versions after Makefile.klibc disappeared.  The problem was that
it was still including a "-lc" in the call to the linker.

Makefile

index d8d2ec0d7baea7bba48905a57132456e513daa7a..67d38c04126d3a82c8941c0ecf6b82aa02bc7029 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -124,7 +124,7 @@ ifeq ($(strip $(KLIBC)),true)
                -I$(INCLUDE_DIR)/bits$(BITSIZE) -I$(GCCINCDIR) -Iklibc/linux/include \
                -D__KLIBC__
        LIB_OBJS =
-       LDFLAGS = --static --nostdlib -nostartfiles
+       LDFLAGS = --static --nostdlib -nostartfiles -nodefaultlibs
 else
        CRT0 =
        LIBC =