summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-12-31 19:11:04 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:12 -0700
commitfb43c2b2e8aee09662226cb8ee8cb9ac93f32890 (patch)
tree944f930df3ed21d94b904549066c349f9dc3acf4
parent4070d2fea01f3c9ee9b9761b5ec795e2c13b126b (diff)
[PATCH] if using glibc, link dynamically, as no one like 500Kb udev binaries...
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9d0ece9c3f..8b20612de0 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