All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libglvnd: needs threads
@ 2022-01-14  7:43 Fabrice Fontaine
  2022-02-03 20:41 ` Arnout Vandecappelle
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2022-01-14  7:43 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine

Fix the following build failure raised since the addition of the package
in commit 0378e2e5d9ce9d5676975dfbff501360094fdc1a:

In file included from ../src/util/glvnd_pthread.c:39:
../src/util/glvnd_pthread.h:33:10: fatal error: pthread.h: No such file or directory
   33 | #include <pthread.h>
      |          ^~~~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/63624bafc6f7a225d4db0667df977fd6141561aa

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/libglvnd/Config.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/package/libglvnd/Config.in b/package/libglvnd/Config.in
index cd19fde582..d020c21465 100644
--- a/package/libglvnd/Config.in
+++ b/package/libglvnd/Config.in
@@ -2,6 +2,7 @@ config BR2_PACKAGE_LIBGLVND
 	bool "libglvnd"
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # __sync_*_4 intrisics
 	depends on !BR2_STATIC_LIBS # dlfcn.h
+	depends on BR2_TOOLCHAIN_HAS_THREADS
 	help
 	  The GL Vendor-Neutral Dispatch library
 
@@ -45,6 +46,6 @@ config BR2_PACKAGE_PROVIDES_LIBGLES
 
 endif
 
-comment "libglvnd needs a toolchain w/ dynamic library"
+comment "libglvnd needs a toolchain w/ dynamic library, threads"
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4
-	depends on BR2_STATIC_LIBS
+	depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/libglvnd: needs threads
  2022-01-14  7:43 [Buildroot] [PATCH 1/1] package/libglvnd: needs threads Fabrice Fontaine
@ 2022-02-03 20:41 ` Arnout Vandecappelle
  0 siblings, 0 replies; 2+ messages in thread
From: Arnout Vandecappelle @ 2022-02-03 20:41 UTC (permalink / raw)
  To: Fabrice Fontaine, buildroot



On 14/01/2022 08:43, Fabrice Fontaine wrote:
> Fix the following build failure raised since the addition of the package
> in commit 0378e2e5d9ce9d5676975dfbff501360094fdc1a:
> 
> In file included from ../src/util/glvnd_pthread.c:39:
> ../src/util/glvnd_pthread.h:33:10: fatal error: pthread.h: No such file or directory
>     33 | #include <pthread.h>
>        |          ^~~~~~~~~~~
> 
> Fixes:
>   - http://autobuild.buildroot.org/results/63624bafc6f7a225d4db0667df977fd6141561aa
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

  Applied to master, thanks.

  Regards,
  Arnout

> ---
>   package/libglvnd/Config.in | 5 +++--
>   1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/package/libglvnd/Config.in b/package/libglvnd/Config.in
> index cd19fde582..d020c21465 100644
> --- a/package/libglvnd/Config.in
> +++ b/package/libglvnd/Config.in
> @@ -2,6 +2,7 @@ config BR2_PACKAGE_LIBGLVND
>   	bool "libglvnd"
>   	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # __sync_*_4 intrisics
>   	depends on !BR2_STATIC_LIBS # dlfcn.h
> +	depends on BR2_TOOLCHAIN_HAS_THREADS
>   	help
>   	  The GL Vendor-Neutral Dispatch library
>   
> @@ -45,6 +46,6 @@ config BR2_PACKAGE_PROVIDES_LIBGLES
>   
>   endif
>   
> -comment "libglvnd needs a toolchain w/ dynamic library"
> +comment "libglvnd needs a toolchain w/ dynamic library, threads"
>   	depends on BR2_TOOLCHAIN_HAS_SYNC_4
> -	depends on BR2_STATIC_LIBS
> +	depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-03 20:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-14  7:43 [Buildroot] [PATCH 1/1] package/libglvnd: needs threads Fabrice Fontaine
2022-02-03 20:41 ` Arnout Vandecappelle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.