From d2e7ec721f28a360b6bda2ed7e0f26218accc292 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Wed, 7 Dec 2011 20:00:09 +0100 Subject: [PATCH] sqlite: refactor how CFLAGS are passed to the configure script Change the way the SQLITE_CONF_ENV variable is constructed in preparation of passing other CFLAGS to the configure script. Signed-off-by: Sven Neumann Reviewed-by: Thomas De Schampheleire Signed-off-by: Peter Korsgaard --- package/sqlite/sqlite.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/sqlite/sqlite.mk b/package/sqlite/sqlite.mk index f587f47705..0bee337e77 100644 --- a/package/sqlite/sqlite.mk +++ b/package/sqlite/sqlite.mk @@ -13,9 +13,11 @@ ifneq ($(BR2_LARGEFILE),y) # the sqlite configure script fails to define SQLITE_DISABLE_LFS when # --disable-largefile is passed, breaking the build. Work around it by # simply adding it to CFLAGS for configure instead -SQLITE_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -DSQLITE_DISABLE_LFS" +SQLITE_CFLAGS += -DSQLITE_DISABLE_LFS endif +SQLITE_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) $(SQLITE_CFLAGS)" + SQLITE_CONF_OPT = \ --enable-threadsafe \ --localstatedir=/var -- 2.30.2