From e23872c8db1fb26713b9c15b12686ac7a0077576 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Fri, 1 Mar 2013 14:15:39 +0530 Subject: Set default stack size from program environment New environment variable GLIBC_PTHREAD_DEFAULT_STACKSIZE to do this. --- nptl/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'nptl/Makefile') 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 -- cgit 1.4.1