gnome-shell: increase stack size on non-musl

This commit is contained in:
Enno Boland 2018-10-15 11:03:03 +02:00
parent 45030a9b15
commit f532213e13
No known key found for this signature in database
GPG Key ID: D09964719BDE9971
2 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,23 @@
diff --git a/src/main.c b/src/main.c
index 01155777c..0fbcd4390 100644
--- ./src/main.c
+++ ./src/main.c
@@ -438,6 +438,18 @@ main (int argc, char **argv)
GError *error = NULL;
int ecode;
+#ifndef __GLIBC__
+ pthread_attr_t attr;
+ if (pthread_getattr_default_np(&attr) != 0) {
+ perror("pthread_getattr_default_np");
+ } else {
+ pthread_attr_setstacksize(&attr, 8388608);
+ if (pthread_setattr_default_np(&attr) != 0) {
+ perror("pthread_setattr_default_np");
+ }
+ }
+#endif
+
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);

View File

@ -1,7 +1,7 @@
# Template file for 'gnome-shell'
pkgname=gnome-shell
version=3.30.1
revision=1
revision=2
build_style=meson
configure_args="-Dsystemd=false"
hostmakedepends="gobject-introspection gtk-doc intltool libxslt pkg-config