summaryrefslogtreecommitdiffstats
path: root/newlib/configure.host
diff options
context:
space:
mode:
authorThomas Fitzsimmons <fitzsim@redhat.com>2002-05-08 20:35:16 +0000
committerThomas Fitzsimmons <fitzsim@redhat.com>2002-05-08 20:35:16 +0000
commit0c048a9a90ef65d0582038c0097e4bfdb18abdfb (patch)
tree6a4e58a69987a19d5ce98bd436fd5fb9e6263d74 /newlib/configure.host
parent76490806069d5f64a9060aff78484ec5f6b82061 (diff)
downloadcygnal-0c048a9a90ef65d0582038c0097e4bfdb18abdfb.tar.gz
cygnal-0c048a9a90ef65d0582038c0097e4bfdb18abdfb.tar.bz2
cygnal-0c048a9a90ef65d0582038c0097e4bfdb18abdfb.zip
* acinclude.m4: Add support for --enable-newlib-multithread.
* configure.host (newlib_cflags): Add -D__SINGLE_THREAD__ if --enable-newlib-multithread=no.
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