From 7f2ea6a38223b02d38406baf1843f4ee1349abcf Mon Sep 17 00:00:00 2001 From: "mort@wildopensource.com" Date: Tue, 2 Dec 2003 00:59:36 -0800 Subject: [PATCH] [PATCH] Add -nodefaultlibs while compiling against klibc 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d8d2ec0d..67d38c04 100644 --- 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 = -- 2.39.5