[PATCH] if using glibc, link dynamically, as no one like 500Kb udev binaries...
This commit is contained in:
parent
4070d2fea0
commit
fb43c2b2e8
7
Makefile
7
Makefile
|
@ -114,8 +114,9 @@ else
|
||||||
STRIPCMD = $(STRIP) -s --remove-section=.note --remove-section=.comment
|
STRIPCMD = $(STRIP) -s --remove-section=.note --remove-section=.comment
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# If we are using our version of klibc, then we need to build and link it.
|
# If we are using our version of klibc, then we need to build, link it, and then
|
||||||
# Otherwise, use glibc and link statically.
|
# link udev against it statically.
|
||||||
|
# Otherwise, use glibc and link dynamically.
|
||||||
ifeq ($(strip $(USE_KLIBC)),true)
|
ifeq ($(strip $(USE_KLIBC)),true)
|
||||||
KLIBC_BASE = $(PWD)/klibc
|
KLIBC_BASE = $(PWD)/klibc
|
||||||
KLIBC_DIR = $(KLIBC_BASE)/klibc
|
KLIBC_DIR = $(KLIBC_BASE)/klibc
|
||||||
|
@ -139,7 +140,7 @@ else
|
||||||
LIBC =
|
LIBC =
|
||||||
CFLAGS += -I$(GCCINCDIR)
|
CFLAGS += -I$(GCCINCDIR)
|
||||||
LIB_OBJS = -lc
|
LIB_OBJS = -lc
|
||||||
LDFLAGS = --static
|
LDFLAGS =
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS += -I$(PWD)/libsysfs
|
CFLAGS += -I$(PWD)/libsysfs
|
||||||
|
|
Loading…
Reference in New Issue