[Buildroot] [PATCH] gd: link with pthread to avoid build failure

Yuvaraj Patil yuvaraj.patil at wipro.com
Thu Sep 25 14:03:57 UTC 2014


Link this package with pthread option.

Fixes:
http://autobuild.buildroot.net/results/0e2/0e2b28e8561c6f7623185c35eb24bea573b79d11//

Signed-off-by: Yuvaraj Patil <yuvaraj.patil at wipro.com>
---
 package/gd/gd.mk |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/gd/gd.mk b/package/gd/gd.mk
index 0c03ad4..31d7954 100644
--- a/package/gd/gd.mk
+++ b/package/gd/gd.mk
@@ -47,6 +47,12 @@ ifeq ($(BR2_PACKAGE_ZLIB),y)
 GD_DEPENDENCIES += zlib
 endif
 
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
+GD_CONF_ENV += LIBS='-pthread'
+else
+GD_CONF_OPT += --disable-thread-safety
+endif
+
 GD_TOOLS_$(BR2_PACKAGE_GD_ANNOTATE)	+= annotate
 GD_TOOLS_$(BR2_PACKAGE_GD_BDFTOGD)	+= bdftogd
 GD_TOOLS_$(BR2_PACKAGE_GD_GD2COPYPAL)	+= gd2copypal
-- 
1.7.9.5



More information about the buildroot mailing list