From 899a8a24f2ef3ac98eae7a621e8ad218530602fd Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Sat, 25 Apr 2009 10:36:03 -0700 Subject: [PATCH] Fix an installworld failure due to kernel fixes and a libthread_xu issue. Build the bootstrap version of cpdup without threading to work around a bug in libthread_xu. Libthread_xu was trying to map the original user stack's red zone without using MAP_FIXED or MAP_TRYFIXED or MAP_STACK, a behavior which the kernel now prohibits. This fixes running installworld after rebooting with a new kernel. Sepherosa Ziehau --- bin/cpdup/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cpdup/Makefile b/bin/cpdup/Makefile index fd40d3b602..a43c56b040 100644 --- a/bin/cpdup/Makefile +++ b/bin/cpdup/Makefile @@ -4,7 +4,7 @@ PROG= cpdup SRCS= cpdup.c hcproto.c hclink.c misc.c fsmid.c -.if !defined(NOPTHREADS) +.if !defined(NOPTHREADS) && !defined(BOOTSTRAPPING) CFLAGS += -DUSE_PTHREADS=1 -pthread .endif -- 2.11.4.GIT