about summary refs log tree commit diff
path: root/nptl/Makefile
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2013-03-01 14:15:39 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2013-03-01 14:15:39 +0530
commite23872c8db1fb26713b9c15b12686ac7a0077576 (patch)
treea7fa040afb53ba1f5bd98bb33f214aa32e3729b8 /nptl/Makefile
parentfd6cdc6da490616f4d381f4d44f03d61f64da2ba (diff)
downloadglibc-e23872c8db1fb26713b9c15b12686ac7a0077576.tar.gz
glibc-e23872c8db1fb26713b9c15b12686ac7a0077576.tar.xz
glibc-e23872c8db1fb26713b9c15b12686ac7a0077576.zip
Set default stack size from program environment
New environment variable GLIBC_PTHREAD_DEFAULT_STACKSIZE to do this.
Diffstat (limited to 'nptl/Makefile')
-rw-r--r--nptl/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/nptl/Makefile b/nptl/Makefile
index 6af4b37af4..e7cfe8bcd4 100644
--- a/nptl/Makefile
+++ b/nptl/Makefile
@@ -251,7 +251,8 @@ tests = tst-typesizes \
 	tst-exec1 tst-exec2 tst-exec3 tst-exec4 \
 	tst-exit1 tst-exit2 tst-exit3 \
 	tst-stdio1 tst-stdio2 \
-	tst-stack1 tst-stack2 tst-stack3 tst-pthread-getattr \
+	tst-stack1 tst-stack2 tst-stack3 \
+	tst-pthread-getattr tst-pthread-stack-env \
 	tst-unload \
 	tst-dlsym1 \
 	tst-sysconf \
@@ -441,6 +442,8 @@ tst-cancel7-ARGS = --command "exec $(host-test-program-cmd)"
 tst-cancelx7-ARGS = $(tst-cancel7-ARGS)
 tst-umask1-ARGS = $(objpfx)tst-umask1.temp
 
+tst-pthread-stack-env-ENV = GLIBC_PTHREAD_DEFAULT_STACKSIZE=1048576
+
 $(objpfx)tst-atfork2: $(libdl) $(shared-thread-library)
 LDFLAGS-tst-atfork2 = -rdynamic
 tst-atfork2-ENV = MALLOC_TRACE=$(objpfx)tst-atfork2.mtrace