stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r290862 - /incubator/stdcxx/trunk/etc/config/gcc.config
Date Wed, 21 Sep 2005 23:52:57 GMT
Author: sebor
Date: Wed Sep 21 16:52:54 2005
New Revision: 290862

URL: http://svn.apache.org/viewcvs?rev=290862&view=rev
Log:
2005-09-21  Martin Sebor  <sebor@roguewave.com>

	STDCXX-39
	* gcc.config: Replaced -pthreads with -mthreads on Cygwin.
	Defined AS_EXT to .s on the same platform.

Modified:
    incubator/stdcxx/trunk/etc/config/gcc.config

Modified: incubator/stdcxx/trunk/etc/config/gcc.config
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/etc/config/gcc.config?rev=290862&r1=290861&r2=290862&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/gcc.config (original)
+++ incubator/stdcxx/trunk/etc/config/gcc.config Wed Sep 21 16:52:54 2005
@@ -1,5 +1,5 @@
 #
-# $Id: //stdlib/dev/etc/stdlib/config/gcc.config#32 $
+# $Id$
 #
 # configuration file for gcc
 #
@@ -126,23 +126,31 @@
 # option is named -pthreads for gcc on Sun/Solaris
 MULTI_CPPFLAGS_POSIX   = -pthread
 
-ifeq ($(OSNAME),SunOS)
-  MULTI_CPPFLAGS_POSIX = -pthreads
-endif
-
-MULTI_CPPFLAGS_SOLARIS = -threads
-MULTI_CPPFLAGS_DCE     = 
 
-MULTI_LDFLAGS_POSIX    = -pthread
+ifeq ($(findstring CYGWIN,$(OSNAME)),)
+  ifeq ($(OSNAME),SunOS)
+    MULTI_CPPFLAGS_POSIX = -pthreads
+    MULTI_LDFLAGS_POSIX  = -pthreads
+  else
+    MULTI_CPPFLAGS_POSIX = -pthread
+    MULTI_LDFLAGS_POSIX  = -pthread
+  endif
+else
+  # on Cygwin use MingW-threads by default
+  MULTI_CPPFLAGS_POSIX = -mthreads
+  MULTI_LDFLAGS_POSIX  = -mthreads
 
-ifeq ($(OSNAME),SunOS)
-  MULTI_LDFLAGS_POSIX  = -pthreads
+  # set the assembler file suffix to .s
+  AS_EXT = .s
 endif
 
+MULTI_CPPFLAGS_SOLARIS = -threads
 MULTI_LDFLAGS_SOLARIS  = -threads
+
+MULTI_CPPFLAGS_DCE     = 
 MULTI_LDFLAGS_DCE      = 
 
-# Posix
+# POSIX
 MULTI_CPPFLAGS = $(MULTI_CPPFLAGS_POSIX)
 MULTI_LDFLAGS  = $(MULTI_LDFLAGS_POSIX)
 



Mime
View raw message