Skip to contentSkip to conversation

sqlcipher: fix openssl configure test when building statically

PATCH New Baruch Siach 2 participants 2 messages Nov 25, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sqlcipher: fix openssl configure test when building statically

When testing link with openssl the configure script adds another -lcrypto after LDFLAGS. This -lcrypto also needs -lz. Move libraries list to LIBS to make -lz appear at the proper place.

Fixes:
http://autobuild.buildroot.net/results/59d/59d8d7c7f3e0a205503121c1288187471c0ce80f/
http://autobuild.buildroot.net/results/2ed/2ed2026bc5502807588a9335bd4c78e0a26c1cd3/
http://autobuild.buildroot.net/results/cd3/cd35b24422cf7f8697e81ca7f0dd2f06dfc55997/

---
 package/sqlcipher/sqlcipher.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/sqlcipher/sqlcipher.mk +2 -2
index 86eebb5c4c68..664e0f39ab08 100644
@@ -11,14 +11,14 @@ SQLCIPHER_INSTALL_STAGING = YES
 
 SQLCIPHER_CONF_ENV = \
 	CFLAGS="$(TARGET_CFLAGS) $(SQLCIPHER_CFLAGS)" \
-	LDFLAGS="$(TARGET_LDFLAGS) $(SQLCIPHER_LDFLAGS)" \
+	LDFLAGS="$(TARGET_LDFLAGS)" LIBS="$(SQLCIPHER_LIBS)" \
 	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_LDFLAGS += -lcrypto -lz
+SQLCIPHER_LIBS += -lcrypto -lz
 
 ifneq ($(BR2_LARGEFILE),y)
 # the sqlite configure script fails to define SQLITE_DISABLE_LFS when
Signature · 1 line
2.1.3
#1 lore raw

PATCH 1/1 sqlcipher: fix openssl configure test when building statically

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Baruch" == Baruch Siach <[email protected]> writes:

When testing link with openssl the configure script adds another -lcrypto after LDFLAGS. This -lcrypto also needs -lz. Move libraries list to LIBS to make -lz appear at the proper place.

Quoted 6 lines

Fixes:
http://autobuild.buildroot.net/results/59d/59d8d7c7f3e0a205503121c1288187471c0ce80f/
http://autobuild.buildroot.net/results/2ed/2ed2026bc5502807588a9335bd4c78e0a26c1cd3/
http://autobuild.buildroot.net/results/cd3/cd35b24422cf7f8697e81ca7f0dd2f06dfc55997/

Sorry, I already fixed that issue earlier today:

http://git.buildroot.net/buildroot/commit/?id=74b399e7cd44fb3866a3cc8bc6b5636f1c8f2fa2

Signature · 1 line
Bye, Peter Korsgaard