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

[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

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

                 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

    _______________________________________________________

Details:

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:

            *solaris*)
            if test "$GCC" = "yes"; then
                flag="-D_REENTRANT"
            else
                flag="-mt -D_REENTRANT"
            fi





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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