package/berkeleydb: add host variant
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 28 Jul 2019 08:50:46 +0000 (10:50 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 28 Jul 2019 10:24:23 +0000 (12:24 +0200)
Needed for the upcoming Exim security version bump.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/berkeleydb/berkeleydb.mk

index e5c11bddcf1e5969e14f2c9b06a5851b47bea0c7..e077eb4640bb6f062bc03a87f8b6bb6c47f000a8 100644 (file)
@@ -44,6 +44,22 @@ define BERKELEYDB_CONFIGURE_CMDS
        )
 endef
 
+define HOST_BERKELEYDB_CONFIGURE_CMDS
+       (cd $(@D)/build_unix; rm -rf config.cache; \
+               $(HOST_CONFIGURE_OPTS) \
+               ../dist/configure $(QUIET) \
+               --prefix=$(HOST_DIR) \
+               --with-gnu-ld \
+               --disable-cxx \
+               --disable-java \
+               --disable-tcl \
+               --disable-compat185 \
+               --with-pic \
+               --enable-o_direct \
+               --disable-mutexsupport \
+       )
+endef
+
 ifneq ($(BR2_PACKAGE_BERKELEYDB_TOOLS),y)
 
 define BERKELEYDB_REMOVE_TOOLS
@@ -61,3 +77,4 @@ endef
 BERKELEYDB_POST_INSTALL_TARGET_HOOKS += BERKELEYDB_REMOVE_DOCS
 
 $(eval $(autotools-package))
+$(eval $(host-autotools-package))