From: Vadim Zeitlin Date: Sat, 20 Aug 2005 15:12:24 +0000 (+0000) Subject: use -threads with gcc under HP-UX instead of -pthread X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d66943923df84e101b5aca99d94a3dad5a93dd21 use -threads with gcc under HP-UX instead of -pthread git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/configure.in b/configure.in index e734762a32..5b2241199a 100644 --- a/configure.in +++ b/configure.in @@ -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 ;;