Browse Source

sqlite3: small improvements

This commit:

 - adds support for parallel builds (the possibilities of building parts
   of sqlite3 in parellel are limited, but there is no downside)

 - adds a CVE/CPE ID

 - Removes useless "=1" from -D[EFINES]

 - Adds --disable-debug (default anyway, just makes it explicit), put
   --disable-static-shell up top to sort the list alphabetically

 - Saves one INSTALL_DIR line in the end

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
lilik-openwrt-22.03
Sebastian Kemper 6 years ago
parent
commit
a34c27d9a4
1 changed files with 11 additions and 7 deletions
  1. +11
    -7
      libs/sqlite3/Makefile

+ 11
- 7
libs/sqlite3/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=sqlite
PKG_VERSION:=3260000
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-autoconf-$(PKG_VERSION).tar.gz
PKG_HASH:=5daa6a3fb7d1e8c767cd59c4ded8da6e4b00c61d3b466d0685e35c4dd6d7bf5d
@ -20,6 +20,10 @@ PKG_LICENSE_FILES:=
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-autoconf-$(PKG_VERSION)
PKG_BUILD_PARALLEL:=1
PKG_CPE_ID:=cpe:/a:sqlite:sqlite
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
@ -92,14 +96,15 @@ define Package/sqlite3-cli/config
endef
TARGET_CFLAGS += \
-DHAVE_ISNAN=1 \
-DHAVE_MALLOC_USABLE_SIZE=1 \
-DSQLITE_ENABLE_UNLOCK_NOTIFY=1
-DHAVE_ISNAN \
-DHAVE_MALLOC_USABLE_SIZE \
-DSQLITE_ENABLE_UNLOCK_NOTIFY
CONFIGURE_ARGS += \
--disable-debug \
--disable-static-shell \
--enable-shared \
--enable-static \
--disable-static-shell \
$(if $(CONFIG_SQLITE3_DYNAMIC_EXTENSIONS),--enable-dynamic-extensions,--disable-dynamic-extensions) \
$(if $(CONFIG_SQLITE3_FTS3),--enable-fts3,--disable-fts3) \
$(if $(CONFIG_SQLITE3_FTS3),--enable-fts4,--disable-fts4) \
@ -119,10 +124,9 @@ endif
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/include/sqlite3{,ext}.h $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsqlite3.{a,so*} $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/sqlite3.pc $(1)/usr/lib/pkgconfig/
endef


Loading…
Cancel
Save