Skip to contentSkip to conversation

gnutls: make sure librt detection doesn't poison the linker flags

PATCH New Thomas Petazzoni 1 participant 2 messages Feb 14, 2015 – Feb 17, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gnutls: make sure librt detection doesn't poison the linker flags

Just like we're passing --with-libpthread-prefix, we also need to pass --with-librt-prefix in order to avoid having the gnutls build system detect the librt in /usr/lib, and pass -L/usr/lib to the linker flags.

Fixes:

http://autobuild.buildroot.org/results/fa5/fa58602cb78ffe3ae4ee389ef5cf5a37b7657c4c/

---
 package/gnutls/gnutls.mk | 1 +
 1 file changed, 1 insertion(+)
package/gnutls/gnutls.mk +1 -0
index ab176a6..6c64b38 100644
@@ -17,6 +17,7 @@ GNUTLS_DEPENDENCIES = host-pkgconf nettle pcre \
 	$(if $(BR2_PACKAGE_ZLIB),zlib)
 GNUTLS_CONF_OPTS = \
 	--with-libnettle-prefix=$(STAGING_DIR)/usr \
+	--with-librt-prefix=$(STAGING_DIR) \
 	--disable-rpath \
 	--disable-doc \
 	--disable-guile \
Signature · 1 line
2.1.0
#1 lore raw

PATCH 1/1 gnutls: make sure librt detection doesn't poison the linker flags

Hello,

Quoted 4 lines · Thomas Petazzoni

Just like we're passing --with-libpthread-prefix, we also need to pass --with-librt-prefix in order to avoid having the gnutls build system detect the librt in /usr/lib, and pass -L/usr/lib to the linker flags.

Quoted 8 lines

Fixes:

http://autobuild.buildroot.org/results/fa5/fa58602cb78ffe3ae4ee389ef5cf5a37b7657c4c/

---
 package/gnutls/gnutls.mk | 1 +
 1 file changed, 1 insertion(+)

Since the issue occurred again in the autobuilder, I applied this patch.

Thomas

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