stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Lemings <eric.lemi...@roguewave.com>
Subject [PATCH] GCC compiler on Mac OS X 10.4.6 Tiger (Darwin) does not understand -pthread or -pthreads options.
Date Wed, 31 May 2006 18:19:44 GMT

http://issues.apache.org/jira/browse/STDCXX-191

Index: etc/config/gcc.config
===================================================================
--- etc/config/gcc.config       (revision 410400)
+++ etc/config/gcc.config       (working copy)
@@ -157,8 +157,11 @@
        MULTI_CPPFLAGS_POSIX = -D_REENTRANT
        MULTI_LDFLAGS_POSIX   = -lpthread
      else
-      MULTI_CPPFLAGS_POSIX = -pthread
-      MULTI_LDFLAGS_POSIX  = -pthread
+      # option doesn't exist in Darwin gcc
+      ifneq ($(OSNAME),Darwin)
+        MULTI_CPPFLAGS_POSIX = -pthread
+        MULTI_LDFLAGS_POSIX  = -pthread
+      endif
      endif
    endif
else


Mime
View raw message