Support systems with no available pthreads support.

This change addresses:

  https://bugzilla.kernel.org/show_bug.cgi?id=209875

Howto:

  make PTHREADS=no ...

Signed-off-by: Andrew G. Morgan <[email protected]>
diff --git a/Make.Rules b/Make.Rules
index 6a571c6..0e7192c 100644
--- a/Make.Rules
+++ b/Make.Rules
@@ -84,6 +84,18 @@
 INDENT := $(shell if [ -n "$$(which indent 2>/dev/null)" ]; then echo "| indent -kr" ; fi)
 DYNAMIC := $(shell if [ ! -d "$(topdir)/.git" ]; then echo yes; fi)
 
+# If your system does not support pthreads, override this as "no".
+#
+#    make PTHREADS=no ...
+#
+# This implies no Go support and no C/C++ libpsx build. Why might you
+# need libpsx for non-Go use? Tl;dr for POSIX semantics security:
+#
+#    https://sites.google.com/site/fullycapable/who-ordered-libpsx
+#
+PTHREADS ?= yes
+
+ifeq ($(PTHREADS),yes)
 GO := go
 GOLANG := $(shell if [ -n "$(shell $(GO) version 2>/dev/null)" ]; then echo yes ; else echo no ; fi)
 ifeq ($(GOLANG),yes)
@@ -99,6 +111,7 @@
 GOBUILDTAG=-tags allthreadssyscall
 endif
 endif
+endif
 
 # If you want capsh to launch with something other than /bin/bash
 # build like this: