74b399e7cd
Pass the needed libraries in LIBS instead of LDFLAGS so they end up last on the linker cmdline, fixing static linking. Fixes: http://autobuild.buildroot.net/results/59d/59d8d7c7f3e0a205503121c1288187471c0ce80f/ http://autobuild.buildroot.net/results/2ed/2ed2026bc5502807588a9335bd4c78e0a26c1cd3/ http://autobuild.buildroot.net/results/cd3/cd35b24422cf7f8697e81ca7f0dd2f06dfc55997/ http://autobuild.buildroot.net/results/aa2/aa24359a0d7d9bb4e00ba96cb80301f59466ab90/ And many more. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# sqlcipher
|
|
#
|
|
################################################################################
|
|
|
|
SQLCIPHER_VERSION = v3.2.0
|
|
SQLCIPHER_SITE = $(call github,sqlcipher,sqlcipher,$(SQLCIPHER_VERSION))
|
|
SQLCIPHER_DEPENDENCIES = openssl host-tcl
|
|
SQLCIPHER_INSTALL_STAGING = YES
|
|
|
|
SQLCIPHER_CONF_ENV = \
|
|
CFLAGS="$(TARGET_CFLAGS) $(SQLCIPHER_CFLAGS)" \
|
|
TCLSH_CMD=$(HOST_DIR)/usr/bin/tclsh$(TCL_VERSION_MAJOR)
|
|
|
|
SQLCIPHER_CONF_OPTS = \
|
|
--enable-threadsafe
|
|
|
|
SQLCIPHER_CFLAGS += -DSQLITE_HAS_CODEC # Required according to the README
|
|
SQLCIPHER_CONF_ENV += LIBS="-lcrypto -lz"
|
|
|
|
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
|
|
SQLCIPHER_CFLAGS += -DSQLITE_DISABLE_LFS
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SQLCIPHER_STAT3),y)
|
|
SQLCIPHER_CFLAGS += -DSQLITE_ENABLE_STAT3
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SQLCIPHER_READLINE),y)
|
|
SQLCIPHER_DEPENDENCIES += ncurses readline
|
|
SQLCIPHER_CONF_OPTS += --with-readline-inc="-I$(STAGING_DIR)/usr/include"
|
|
else
|
|
SQLCIPHER_CONF_OPTS += --disable-readline
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|