Skip to contentSkip to conversation

package/libglvnd: needs threads

PATCH Applied Fabrice Fontaine 2 participants 2 messages Jan 14, 2022 – Feb 3, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libglvnd: needs threads

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

---
 package/libglvnd/Config.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
package/libglvnd/Config.in +3 -2
index cd19fde582..d020c21465 100644
@@ -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
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 5 lines · 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

Quoted 7 lines
    33 | #include <pthread.h>
       |          ^~~~~~~~~~~

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

Applied to master, thanks.

Regards,
Arnout

Quoted 17 lines
---
  package/libglvnd/Config.in | 5 +++--
  1 file changed, 3 insertions(+), 2 deletions(-)
package/libglvnd/Config.in +1 -0
index cd19fde582..d020c21465 100644
@@ -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
 

package/libglvnd/Config.in config BR2_PACKAGE_PROVIDES_LIBGLES · line 51

Quoted 8 lines
package/libglvnd/Config.in +2 -2
@@ -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
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot