[Top][All Lists]

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

[patch #7666] ax_pthread macro fails for C++ on Solaris

From: anonymous
Subject: [patch #7666] ax_pthread macro fails for C++ on Solaris
Date: Thu, 17 Nov 2011 00:57:23 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0) Gecko/20100101 Firefox/8.0


                 Summary: ax_pthread macro fails for C++ on Solaris
                 Project: GNU Autoconf Archive
            Submitted by: None
            Submitted on: Thu 17 Nov 2011 12:57:22 AM UTC
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any



The section that adds "extra" flags for Solaris is missing the addition of the
-mt option for Oracle/Sun CC. It's used at the top in the detection code, but
never gets added. _RENTRANT alone is not sufficient when using that compiler
with C++, you get improper safety for object startup and shutdown.

I use this in place of the existing code for special flags:

            if test "$GCC" = "yes"; then
                flag="-mt -D_REENTRANT"


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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