package/lvm2: enable static build for device mapper
PATCH 1/1 package/lvm2: enable static build for device mapper
Add static build support for device mapper
Signed-off-by Andreas Mohr <[email protected]>
--- package/lvm2/Config.in | 9 ++++++--- package/lvm2/lvm2.mk | 9 +++++++++ 2 files changed, 15 insertions(+), 3 deletions(-)
package/lvm2/Config.in +6 -3
@@ -2,7 +2,6 @@ config BR2_PACKAGE_LVM2 bool "lvm2 & device mapper" depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_USE_MMU # needs fork() - depends on !BR2_STATIC_LIBS # It fails to build statically help This is LVM2, the rewrite of The Linux Logical Volume Manager. LVM supports enterprise level volume management of disk and
@@ -26,13 +25,17 @@ if BR2_PACKAGE_LVM2 config BR2_PACKAGE_LVM2_STANDARD_INSTALL bool "standard install instead of only dmsetup" default y + depends on !BR2_STATIC_LIBS # It fails to build statically select BR2_PACKAGE_LIBAIO help Install the standard suite of lvm2 programs. When this option is not set, only dmsetup is installed. +comment "lvm2 standard install needs a toolchain w/ dynamic library" + depends on BR2_STATIC_LIBS + endif -comment "lvm2 needs a toolchain w/ threads, dynamic library" +comment "lvm2 needs a toolchain w/ threads" depends on BR2_USE_MMU - depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_TOOLCHAIN_HAS_THREADS
package/lvm2/lvm2.mk +9 -0
@@ -48,6 +48,15 @@ else LVM2_CONF_OPTS += --disable-selinux endif +ifeq ($(BR2_STATIC_LIBS),y) +# configure: error: --enable-cmdlib requires dynamic linking. +LVM2_CONF_OPTS += --disable-cmdlib +# configure: error: --enable-dmeventd requires --enable-cmdlib to be used as well +LVM2_CONF_OPTS += --disable-dmeventd +# install static version of the device mapper library +LVM2_CONF_OPTS += --enable-static_link +endif + ifeq ($(BR2_PACKAGE_LVM2_STANDARD_INSTALL),y) LVM2_DEPENDENCIES += libaio LVM2_INSTALL_STAGING_OPTS += install
Signature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot