mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-31 15:07:43 +00:00
sqlcipher: fix static linking with openssl
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>
This commit is contained in:
parent
71d3b5c108
commit
74b399e7cd
@ -11,14 +11,13 @@ SQLCIPHER_INSTALL_STAGING = YES
|
|||||||
|
|
||||||
SQLCIPHER_CONF_ENV = \
|
SQLCIPHER_CONF_ENV = \
|
||||||
CFLAGS="$(TARGET_CFLAGS) $(SQLCIPHER_CFLAGS)" \
|
CFLAGS="$(TARGET_CFLAGS) $(SQLCIPHER_CFLAGS)" \
|
||||||
LDFLAGS="$(TARGET_LDFLAGS) $(SQLCIPHER_LDFLAGS)" \
|
|
||||||
TCLSH_CMD=$(HOST_DIR)/usr/bin/tclsh$(TCL_VERSION_MAJOR)
|
TCLSH_CMD=$(HOST_DIR)/usr/bin/tclsh$(TCL_VERSION_MAJOR)
|
||||||
|
|
||||||
SQLCIPHER_CONF_OPTS = \
|
SQLCIPHER_CONF_OPTS = \
|
||||||
--enable-threadsafe
|
--enable-threadsafe
|
||||||
|
|
||||||
SQLCIPHER_CFLAGS += -DSQLITE_HAS_CODEC # Required according to the README
|
SQLCIPHER_CFLAGS += -DSQLITE_HAS_CODEC # Required according to the README
|
||||||
SQLCIPHER_LDFLAGS += -lcrypto -lz
|
SQLCIPHER_CONF_ENV += LIBS="-lcrypto -lz"
|
||||||
|
|
||||||
ifneq ($(BR2_LARGEFILE),y)
|
ifneq ($(BR2_LARGEFILE),y)
|
||||||
# the sqlite configure script fails to define SQLITE_DISABLE_LFS when
|
# the sqlite configure script fails to define SQLITE_DISABLE_LFS when
|
||||||
|
Loading…
x
Reference in New Issue
Block a user