From fe31efc11c73fed6562d62525b327681516e604d Mon Sep 17 00:00:00 2001 From: "H.Merijn Brand" Date: Fri, 27 Jan 2012 16:10:11 +0100 Subject: [PATCH] mymalloc isn't threadsafe (rurban) --- U/modified/mallocsrc.U | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/U/modified/mallocsrc.U b/U/modified/mallocsrc.U index 1bb7486..38d2663 100644 --- a/U/modified/mallocsrc.U +++ b/U/modified/mallocsrc.U @@ -22,7 +22,7 @@ ?MAKE:mallocsrc mallocobj usemallocwrap usemymalloc malloctype d_mymalloc \ freetype: Myread \ Oldconfig package Guess Setvar rm cat +cc +ccflags Findhdr \ - i_malloc i_stdlib sed libs _o ptrsize + i_malloc i_stdlib sed libs _o ptrsize useithreads ?MAKE: -pick add $@ %< ?X: Put near top so that other tests don't erroneously include ?X: -lmalloc. --AD 22 June 1998 @@ -117,6 +117,7 @@ case "$usemymalloc" in 4) dflt='y' ;; *) dflt='n' ;; esac + if test "$useithreads" = "$define"; then dflt='n'; fi ;; esac rp="Do you wish to attempt to use the malloc that comes with $package?" -- 1.8.3.1