[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: Daniel Richard G.
Subject: [patch #7666] ax_pthread macro fails for C++ on Solaris
Date: Tue, 22 Nov 2011 01:08:46 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like Gecko) Ubuntu/11.10 Chromium/14.0.835.202 Chrome/14.0.835.202 Safari/535.1

Follow-up Comment #5, patch #7666 (project autoconf-archive):

Sounds about right. From the (Solaris 8) CC(1) man page...

  -mt       Compile and link for multithreaded code.

            This option:

            o Passes -D_REENTRANT to the preprocessor

            o Passes -lthread in the correct order to ld

            o Ensures that, for standard mode (the default
              mode), libthread is linked before libCrun

            o Ensures that, for compability mode (-compat),
              libthread is linked before libC

            The -mt option is required if the application or
            libraries are multithreaded.


            You must use this option, rather than -lthread.

            If you are using POSIX threads, you must link with
            the options -mt -lpthread.  The -mt option is
            necessary because libC (compatibility mode) and
            libCrun (standard mode) need libthread for a mul-
            tithreaded application.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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