Author: sebor
Date: Wed Aug 22 17:18:04 2007
New Revision: 568783

URL: http://svn.apache.org/viewvc?rev=568783&view=rev
Log:
2007-08-22  Martin Sebor  <[EMAIL PROTECTED]>

        STDCXX-525
        * mipspro.config (LDLIBS): Added libpthread to the list of libraries
        to link with when pthread is in BUILDMODE to make sure it's after
        libstdcxx on the link line.
        (MULTI_LDFLAGS_POSIX): Removed -lpthread (wasn't last on the link
        line).

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

Modified: incubator/stdcxx/trunk/etc/config/mipspro.config
URL: 
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/mipspro.config?rev=568783&r1=568782&r2=568783&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/mipspro.config (original)
+++ incubator/stdcxx/trunk/etc/config/mipspro.config Wed Aug 22 17:18:04 2007
@@ -34,6 +34,12 @@
 # with the native C++ Standard Library
 LDFLAGS        += -LANG:std=off
 
+# add libpthread to the list of libraries to link with
+ifeq ($(findstring pthread,$(BUILDMODE)),pthread)
+    LDLIBS := -lpthread
+endif
+
+
 # the extension of assembly files is .s
 AS_EXT = .s
 
@@ -62,7 +68,7 @@
 MULTI_CPPFLAGS_SOLARIS = 
 MULTI_CPPFLAGS_DCE     = 
 
-MULTI_LDFLAGS_POSIX    = -lpthread
+MULTI_LDFLAGS_POSIX    =
 MULTI_LDFLAGS_SOLARIS  = 
 MULTI_LDFLAGS_DCE      = 
 


Reply via email to