From: greg@kroah.com Date: Thu, 1 Jan 2004 03:11:04 +0000 (-0800) Subject: [PATCH] if using glibc, link dynamically, as no one like 500Kb udev binaries... X-Git-Tag: 012~5 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb43c2b2e8aee09662226cb8ee8cb9ac93f32890;p=systemd [PATCH] if using glibc, link dynamically, as no one like 500Kb udev binaries... --- diff --git a/Makefile b/Makefile index 9d0ece9c..8b20612d 100644 --- a/Makefile +++ b/Makefile @@ -114,8 +114,9 @@ else STRIPCMD = $(STRIP) -s --remove-section=.note --remove-section=.comment endif -# If we are using our version of klibc, then we need to build and link it. -# Otherwise, use glibc and link statically. +# If we are using our version of klibc, then we need to build, link it, and then +# link udev against it statically. +# Otherwise, use glibc and link dynamically. ifeq ($(strip $(USE_KLIBC)),true) KLIBC_BASE = $(PWD)/klibc KLIBC_DIR = $(KLIBC_BASE)/klibc @@ -139,7 +140,7 @@ else LIBC = CFLAGS += -I$(GCCINCDIR) LIB_OBJS = -lc - LDFLAGS = --static + LDFLAGS = endif CFLAGS += -I$(PWD)/libsysfs