Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/configure.host')
-rw-r--r--newlib/configure.host6
1 files changed, 6 insertions, 0 deletions
diff --git a/newlib/configure.host b/newlib/configure.host
index 5ff924047..ebf3a2bbb 100644
--- a/newlib/configure.host
+++ b/newlib/configure.host
@@ -209,6 +209,12 @@ case "${host_cpu}" in
;;
esac
+# Disable thread support if requested.
+
+if [ "${newlib_multithread}" = "no" ] ; then
+ newlib_cflags="${newlib_cflags} -D__SINGLE_THREAD__"
+fi
+
# Enable multibyte support if requested.
if [ "${newlib_mb}" = "yes" ] ; then