]> git.saurik.com Git - wxWidgets.git/commitdiff
use -threads with gcc under HP-UX instead of -pthread
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 20 Aug 2005 15:12:24 +0000 (15:12 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 20 Aug 2005 15:12:24 +0000 (15:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure.in

index e734762a32ca5344be4cb1f90f1137e5b8252ecf..5b2241199aabe4b3d01eedd8662f27a6d731e446 100644 (file)
@@ -4428,10 +4428,14 @@ if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
                 THREAD_OPTS="pthreads"
                 ;;
           *-hp-hpux* )
-                dnl HP-UX aCC only gives a warning, not an error about
-                dnl -pthread but it doesn't work and we have to use -lpthread
-                dnl there
-                if test "x$GCC" != "xyes"; then
+                if test "x$GCC" = "xyes"; then
+                    dnl the correct option for gcc is -threads, at least under
+                    dnl HP-UX 11.00
+                    THREAD_OPTS="-threads"
+                fi
+                    dnl HP-UX aCC only gives a warning, not an error about
+                    dnl -pthread but it doesn't work and we have to use
+                    dnl -lpthread there
                     THREAD_OPTS=""
                 fi
                 ;;