autoconf-archive-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch #8186] ax_pthread adds -pthread when it should not on OSX when co


From: anonymous
Subject: [patch #8186] ax_pthread adds -pthread when it should not on OSX when compiling with clang
Date: Sat, 21 Sep 2013 01:48:32 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/536.30.1 (KHTML, like Gecko) Version/6.0.5 Safari/536.30.1

URL:
  <http://savannah.gnu.org/patch/?8186>

                 Summary: ax_pthread adds -pthread when it should not on OSX
when compiling with clang
                 Project: GNU Autoconf Archive
            Submitted by: None
            Submitted on: Sat 21 Sep 2013 01:48:31 AM UTC
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

@@ -160,7 +160,11 @@ case ${host_os} in
         ;;
 
         darwin*)
-        ax_pthread_flags="-pthread $ax_pthread_flags"
+        if test "$CC" = "clang"; then 
+            ax_pthread_flags="$ax_pthread_flags"
+        else 
+            ax_pthread_flags="-pthread $ax_pthread_flags"
+        fi
         ;;
 esac






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?8186>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]