[Buildroot] [PATCH] have e2fsprogs respect BR2_PREFER_STATIC_LIB

Nicolas Pitre nico at cam.org
Wed Dec 3 19:29:24 UTC 2008


Signed-off-by: Nicolas Pitre <nico at cam.org>

Index: package/e2fsprogs/e2fsprogs.mk
===================================================================
--- package/e2fsprogs/e2fsprogs.mk	(revision 24219)
+++ package/e2fsprogs/e2fsprogs.mk	(working copy)
@@ -26,6 +26,12 @@
 	$(CONFIG_UPDATE) $(E2FSPROGS_DIR)/config
 	touch $@
 
+ifeq ($(strip $(BR2_PREFER_STATIC_LIB)),y)
+E2SHLIBS := --disable-elf-shlibs --disable-bsd-shlibs
+else
+E2SHLIBS := --enable-elf-shlibs
+endif
+
 $(E2FSPROGS_DIR)/.configured: $(E2FSPROGS_DIR)/.unpacked
 	(cd $(E2FSPROGS_DIR); rm -rf config.cache; \
 		$(TARGET_CONFIGURE_OPTS) \
@@ -48,7 +54,7 @@
 		--localstatedir=/var \
 		--mandir=/usr/share/man \
 		--infodir=/usr/share/info \
-		--enable-elf-shlibs --enable-dynamic-e2fsck --disable-swapfs \
+		$(E2SHLIBS) --enable-dynamic-e2fsck --disable-swapfs \
 		--disable-debugfs --disable-imager \
 		--disable-resizer --enable-fsck \
 		--disable-e2initrd-helper \



More information about the buildroot mailing list