config.gcc (*-*-netbsd[2-9]*, [...]): Enable POSIX thread support by default.
authorJason Thorpe <thorpej@wasabisystems.com>
Thu, 27 Feb 2003 16:00:55 +0000 (16:00 +0000)
committerJason Thorpe <thorpej@gcc.gnu.org>
Thu, 27 Feb 2003 16:00:55 +0000 (16:00 +0000)
* config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
POSIX thread support by default.

From-SVN: r63509

gcc/ChangeLog
gcc/config.gcc

index c72462a1ad8bd94fd45a8d78d43c5ce511c1bb06..1383f44aa4c08e9aaaa50a8fd180756b41ba95a3 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-27  Jason Thorpe  <thorpej@wasabisystems.com>
+
+       * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
+       POSIX thread support by default.
+
 2003-02-27  Roger Sayle  <roger@eyesopen.com>
 
        * config/i386/cygwin.h: Don't include any other files directly.
index baa22d0cfc5f3e0809621d12c0641345a9a38a8b..22d0db77a7caa5a492d9ff69a47a633ee848ab40 100644 (file)
@@ -399,7 +399,18 @@ case $machine in
        xm_defines=POSIX
        gas=yes
        gnu_ld=yes
+
+       # NetBSD 2.0 and later get POSIX threads enabled by default.
+       # Allow them to be explicitly enabled on any other version.
        case x${enable_threads} in
+       x)
+               case $machine in
+               *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
+                       thread_file='posix'
+                       tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
+                       ;;
+               esac
+               ;;
        xyes | xposix)
                thread_file='posix'
                tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"