[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:
parent
edcd336477
commit
7f2ea6a382
2
Makefile
2
Makefile
|
@ -124,7 +124,7 @@ ifeq ($(strip $(KLIBC)),true)
|
||||||
-I$(INCLUDE_DIR)/bits$(BITSIZE) -I$(GCCINCDIR) -Iklibc/linux/include \
|
-I$(INCLUDE_DIR)/bits$(BITSIZE) -I$(GCCINCDIR) -Iklibc/linux/include \
|
||||||
-D__KLIBC__
|
-D__KLIBC__
|
||||||
LIB_OBJS =
|
LIB_OBJS =
|
||||||
LDFLAGS = --static --nostdlib -nostartfiles
|
LDFLAGS = --static --nostdlib -nostartfiles -nodefaultlibs
|
||||||
else
|
else
|
||||||
CRT0 =
|
CRT0 =
|
||||||
LIBC =
|
LIBC =
|
||||||
|
|
Loading…
Reference in New Issue