[Buildroot] [git commit branch/2019.05.x] package/berkeleydb: add host variant
Peter Korsgaard
peter at korsgaard.com
Sun Aug 4 17:31:32 UTC 2019
commit: https://git.buildroot.net/buildroot/commit/?id=7ed8212a95fd85f7a5cd9f7a75e184c7f9a200b4
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2019.05.x
Needed for the upcoming Exim security version bump.
Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit d4ec3c15961254c1ab92ef67898a64b652ebede0)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
package/berkeleydb/berkeleydb.mk | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/package/berkeleydb/berkeleydb.mk b/package/berkeleydb/berkeleydb.mk
index e5c11bddcf..e077eb4640 100644
--- a/package/berkeleydb/berkeleydb.mk
+++ b/package/berkeleydb/berkeleydb.mk
@@ -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))
More information about the buildroot
mailing list