[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.
This commit is contained in:
mort@wildopensource.com 2003-12-02 00:59:36 -08:00 committed by Greg KH
parent edcd336477
commit 7f2ea6a382
1 changed files with 1 additions and 1 deletions

View File

@ -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 =