chiark / gitweb /
[PATCH] if using glibc, link dynamically, as no one like 500Kb udev binaries...
[elogind.git] / Makefile
index 4c8c8d7dad242f51b39035ed25614e5af9aad293..8b20612de089711b40dad01f4fe2d3f7f54f2504 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,7 @@ USE_DBUS = false
 
 
 ROOT =         udev
-VERSION =      011
+VERSION =      011_bk
 INSTALL_DIR =  /usr/local/bin
 RELEASE_NAME = $(ROOT)-$(VERSION)
 
@@ -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
@@ -214,7 +215,7 @@ udev.conf:
 
 $(OBJS): $(GEN_HEADERS)
 
-$(ROOT): $(OBJS) udev.h namedev.h
+$(ROOT): $(OBJS) udev.h namedev.h udev_version.h udev_dbus.h udevdb.h klibc_fixups.h list.h
        $(LD) $(LDFLAGS) -o $(ROOT) $(CRT0) $(OBJS) $(LIB_OBJS) $(ARCH_LIB_OBJS)
        $(STRIPCMD) $(ROOT)