* [Buildroot] [PATCH] gd: fix static build with threads
@ 2014-04-10 9:34 Baruch Siach
2014-04-10 20:38 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Baruch Siach @ 2014-04-10 9:34 UTC (permalink / raw)
To: buildroot
Fixes:
http://autobuild.buildroot.net/results/4b4/4b4272876385cc21dd06ee946d658b8f9e225d78/
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
package/gd/gd.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/package/gd/gd.mk b/package/gd/gd.mk
index 60c1c514375c..146ad6f9fde9 100644
--- a/package/gd/gd.mk
+++ b/package/gd/gd.mk
@@ -16,6 +16,11 @@ GD_LICENSE_FILES = COPYING
GD_CONFIG_SCRIPTS = gdlib-config
GD_CONF_OPT = --without-x --disable-rpath
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS)$(BR2_PREFER_STATIC_LIB),yy)
+# add -pthread when linking executables statically
+GD_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -pthread"
+endif
+
ifeq ($(BR2_PACKAGE_FONTCONFIG),y)
GD_DEPENDENCIES += fontconfig
GD_CONF_OPT += --with-fontconfig
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] gd: fix static build with threads
2014-04-10 9:34 [Buildroot] [PATCH] gd: fix static build with threads Baruch Siach
@ 2014-04-10 20:38 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2014-04-10 20:38 UTC (permalink / raw)
To: buildroot
>>>>> "Baruch" == Baruch Siach <baruch@tkos.co.il> writes:
> Fixes:
> http://autobuild.buildroot.net/results/4b4/4b4272876385cc21dd06ee946d658b8f9e225d78/
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-10 20:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-10 9:34 [Buildroot] [PATCH] gd: fix static build with threads Baruch Siach
2014-04-10 20:38 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox