Skip to content

meson: add pthreads option - #268

Closed
ffontaine wants to merge 1 commit into
ebassi:masterfrom
ffontaine:master
Closed

meson: add pthreads option#268
ffontaine wants to merge 1 commit into
ebassi:masterfrom
ffontaine:master

Conversation

@ffontaine

Copy link
Copy Markdown

Allow the user to disable pthreads

Allow the user to disable pthreads

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
@ebassi

ebassi commented Aug 12, 2024

Copy link
Copy Markdown
Owner

Why? What kind of platform is this, that does not have pthread?

Care to elaborate what is the goal of adding a build time option that I am going to support?

@ffontaine

Copy link
Copy Markdown
Author

uclibc-ng can be configured without threads support. This configuration can be used by users on some embedded systems (microcontrollers). If this PR is not acceptable, I'll add a dependency on threads for graphene on buildroot side.

@ebassi

ebassi commented Aug 12, 2024

Copy link
Copy Markdown
Owner

I very much doubt anybody will ever use graphene on microcontrollers, considering the nature of the project; unless there are microcontrollers with vector instructions somewhere…

If this PR is not acceptable, I'll add a dependency on threads for graphene on buildroot side.

I think it's more appropriate to add a dependency. I definitely do not test Graphene without a platform threading implementation, so I can't ensure it'll ever work.

Thanks for your contribution, in any case.

@ebassi ebassi closed this Aug 12, 2024
arnout pushed a commit to buildroot/buildroot that referenced this pull request May 29, 2026
Building without threads support fails:
/home/autobuild/autobuild/instance-9/output-1/host/aarch64-buildroot-linux-uclibc/sysroot/usr/include/features.h:220:5: warning: #warning requested reentrant code, but thread support was disabled [-Wcpp]

Added dependency to threads as suggested by upstream:
ebassi/graphene#268 (comment)

Fixes:
http://autobuild.buildroot.org/results/9b3/9b357b1ef2eccd3110d0ecaaff1ae4883dff9280

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
[Bernd:
 - added comment to libgtk4
 - added upstream response to our bug report]
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
arnout pushed a commit to buildroot/buildroot that referenced this pull request Jun 5, 2026
Building without threads support fails:
/home/autobuild/autobuild/instance-9/output-1/host/aarch64-buildroot-linux-uclibc/sysroot/usr/include/features.h:220:5: warning: #warning requested reentrant code, but thread support was disabled [-Wcpp]

Added dependency to threads as suggested by upstream:
ebassi/graphene#268 (comment)

Fixes:
http://autobuild.buildroot.org/results/9b3/9b357b1ef2eccd3110d0ecaaff1ae4883dff9280

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
[Bernd:
 - added comment to libgtk4
 - added upstream response to our bug report]
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
(cherry picked from commit 07f872b)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
arnout pushed a commit to buildroot/buildroot that referenced this pull request Jun 5, 2026
Building without threads support fails:
/home/autobuild/autobuild/instance-9/output-1/host/aarch64-buildroot-linux-uclibc/sysroot/usr/include/features.h:220:5: warning: #warning requested reentrant code, but thread support was disabled [-Wcpp]

Added dependency to threads as suggested by upstream:
ebassi/graphene#268 (comment)

Fixes:
http://autobuild.buildroot.org/results/9b3/9b357b1ef2eccd3110d0ecaaff1ae4883dff9280

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
[Bernd:
 - added comment to libgtk4
 - added upstream response to our bug report]
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
(cherry picked from commit 07f872b)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants