Subject: [SWIPL] SWI-Prolog: plld ignores multithreading

From: Kirill Evstigneev <[email-masked]>
Date: Tue, 31 Jul 2001 16:23:03 +0400

Good daytime.

It seems there is a small mistype in src/plld.c. Because of it plld
cannot detect if the current pl executable is multithreaded or not.
`pl -dump-runtime-variables' returns
...
PLTHREADS="yes";
           ^^^
but plld expects "true".

The patch attached.

-- 
 * Kirill Evstigneev, Solvo Ltd ([email-masked])
--- pl-4.0.9.orig/src/plld.c	Wed Jun 20 19:11:10 2001
+++ pl-4.0.9/src/plld.c	Tue Jul 31 15:49:12 2001
@@ -859,7 +859,7 @@
 	  appendArgList(&ldoptions, v);
 	else if ( streq(name, "PLSOEXT") )
 	  soext = strdup(v);
-	else if ( streq(name, "PLTHREADS") && streq(v, "true") )
+	else if ( streq(name, "PLTHREADS") && streq(v, "yes") )
 	{ ensureOption(&coptions, "-D_REENTRANT");
 	  ensureOption(&cppoptions, "-D_REENTRANT");
 	  pllib = LIB_PLMT;