Skip to content
  • Cary Coutant's avatar
    Replace thread config with automatic config using ax_pthread.m4. · c8dc28bc
    Cary Coutant authored
    The autotools library macro (AX_PTHREAD) is now used to detect if
    pthreads is present and multi-threaded linking in gold is automatically
    enabled if it is found. This enables multi-threaded gold on platforms
    where pthreads is enabled via other methods than just -lpthread
    (e.g., MinGW).
    
    2018-06-19  Joshua Watt  <jpewhacker@gmail.com>
    	    Cary Coutant  <ccoutant@gmail.com>
    
    gold/
    	* configure.ac: Replace manual thread configuration with AX_PTHREAD.
    	Add --enable-threads=auto.
    	* Makefile.am (THREADFLAGS, THREADLIBS): New defines.
    	(AM_CFLAGS, AM_CXXFLAGS): Add $(THREADFLAGS.
    	(THREADSLIB): Remove; change all references to THREADLIBS.
    	* Makefile.in: Regenerate.
    	* aclocal.m4: Regenerate.
    	* config.in: Regenerate.
    	* configure: Regenerate.
    	* testsuite/Makefile.am (THREADSLIB): Replace with...
    	(THREADFLAGS, THREADLIBS): ... these.
    	(LDADD): Remove; add as individual defines for...
    	(object_unittest, binary_unittest, leb128_unittest)
    	(overfl...
    c8dc28bc
To find the state of this project's repository at the time of any of these versions, check out the tags.