Skip to contentSkip to conversation

configure.ac: pthread-stubs is not a thing on GNU/kFreeBSD

PATCH In review Emil Velikov 3 participants 3 messages Apr 5, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure.ac: pthread-stubs is not a thing on GNU/kFreeBSD

From: Emil Velikov <[email protected]>

As mentioned on the xcb mailing list, the platform uses the GLIBC forwarding mechanism.

https://lists.freedesktop.org/archives/xcb/2016-November/010896.html

---
I'm slightly inclined to go a single *gnu* but I'm not 100% sure if that won't catch some corner case platforms. Opinions ?

---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure.ac +1 -1
index f1a13090..0f6fe46d 100644
@@ -64,7 +64,7 @@ LT_INIT([disable-static])
 dnl pthread-stubs is mandatory on BSD platforms, due to the nature of the
 dnl project. Even then there's a notable issue as described in the project README
 case "$host_os" in
-linux* | cygwin* | darwin* | solaris* | gnu*)
+linux* | cygwin* | darwin* | solaris* | *-gnu* | gnu*)
     pthread_stubs_possible="no"
     ;;
 * )
Signature · 6 lines
2.11.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Emil Velikov

From: Emil Velikov <[email protected]>

As mentioned on the xcb mailing list, the platform uses the GLIBC forwarding mechanism.

Quoted 8 lines

https://lists.freedesktop.org/archives/xcb/2016-November/010896.html

---
I'm slightly inclined to go a single *gnu* but I'm not 100% sure if that won't catch some corner case platforms. Opinions ?

Go with *gnu* and replace it with something more complex if/when someone reports this breaks their platform?
Without knowing any more, it's almost as likely that this hypothetical platform would match *-gnu* as well anyway.

Either way:

Quoted 20 lines
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure.ac +1 -1
index f1a13090..0f6fe46d 100644
@@ -64,7 +64,7 @@ LT_INIT([disable-static])
 dnl pthread-stubs is mandatory on BSD platforms, due to the nature of the
 dnl project. Even then there's a notable issue as described in the project README
 case "$host_os" in
-linux* | cygwin* | darwin* | solaris* | gnu*)
+linux* | cygwin* | darwin* | solaris* | *-gnu* | gnu*)
     pthread_stubs_possible="no"
     ;;
 * )
Signature · 1 line
2.11.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reviewed-by
#2 lore raw

2017-04-05 18:43 GMT+02:00 Eric Engestrom <[email protected]>:

Quoted 15 lines · Emil Velikov
Quoted 5 lines

From: Emil Velikov <[email protected]>

As mentioned on the xcb mailing list, the platform uses the GLIBC forwarding mechanism.

Quoted 8 lines

https://lists.freedesktop.org/archives/xcb/2016-November/010896.html

---
I'm slightly inclined to go a single *gnu* but I'm not 100% sure if that won't catch some corner case platforms. Opinions ?

Quoted 7 lines

Go with *gnu* and replace it with something more complex if/when someone reports this breaks their platform?
Without knowing any more, it's almost as likely that this hypothetical platform would match *-gnu* as well anyway.

Either way:

Yeah, sounds good.

Either way too for this and the mesa patch:

Quoted 17 lines
Quoted 17 lines
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure.ac +1 -1
index f1a13090..0f6fe46d 100644
@@ -64,7 +64,7 @@ LT_INIT([disable-static])
 dnl pthread-stubs is mandatory on BSD platforms, due to the nature of the
 dnl project. Even then there's a notable issue as described in the project README
 case "$host_os" in
-linux* | cygwin* | darwin* | solaris* | gnu*)
+linux* | cygwin* | darwin* | solaris* | *-gnu* | gnu*)
     pthread_stubs_possible="no"
     ;;
Quoted 8 lines
Quoted 4 lines
configure.ac +0 -1
 * )
--

2.11.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel