summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormort@wildopensource.com <mort@wildopensource.com>2003-12-02 00:59:36 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:04 -0700
commit7f2ea6a38223b02d38406baf1843f4ee1349abcf (patch)
tree350a71a6ec3bdc02350263cf0a91341fc6d288be /Makefile
parentedcd336477880368915245a4b7ddd1bca5940b30 (diff)
[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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d8d2ec0d7b..67d38c0412 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 =