Skip to contentSkip to conversation

package/libssh2: fix zlib library search path issues

PATCH New Romain Naour 2 participants 2 messages Feb 14, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libssh2: fix zlib library search path issues

Like for lingcrypt and openssl, help the configure script to find zlib installed in STAGING_DIR.

Otherwise, It might find the one installed on the host:
checking how to link with libz... /usr/lib/libz.so -Wl,-rpath -Wl,/usr/lib

Fixes:
http://autobuild.buildroot.net/results/93b/93b43e114f21a22f0f8b7d7dd6774c089c426cd1

---
 package/libssh2/libssh2.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/libssh2/libssh2.mk +2 -1
index c9f7059..1a1a06f 100644
@@ -31,7 +31,8 @@ endif
 # Add zlib support if enabled
 ifeq ($(BR2_PACKAGE_ZLIB),y)
 LIBSSH2_DEPENDENCIES += zlib
-LIBSSH2_CONF_OPTS += --with-libz
+LIBSSH2_CONF_OPTS += --with-libz \
+	--with-libz-prefix=$(STAGING_DIR)/usr
 else
 LIBSSH2_CONF_OPTS += --without-libz
 endif
Signature · 1 line
1.9.3
#1 lore raw

PATCH 1/1 package/libssh2: fix zlib library search path issues

Dear Romain Naour,

Quoted 6 lines · Romain Naour

Like for lingcrypt and openssl, help the configure script to find zlib installed in STAGING_DIR.

Otherwise, It might find the one installed on the host:
checking how to link with libz... /usr/lib/libz.so -Wl,-rpath -Wl,/usr/lib

Quoted 7 lines

Fixes:
http://autobuild.buildroot.net/results/93b/93b43e114f21a22f0f8b7d7dd6774c089c426cd1

---
 package/libssh2/libssh2.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com