[Top][All Lists]

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

[patch #8081] AX_PTHREAD.m4 not setting PTHREAD_LIBS to -pthread for gcc

From: Peter Simons
Subject: [patch #8081] AX_PTHREAD.m4 not setting PTHREAD_LIBS to -pthread for gcc 4.7.2
Date: Wed, 19 Jun 2013 07:49:41 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:21.0) Gecko/20130613 Firefox/21.0


                 Summary: AX_PTHREAD.m4 not setting PTHREAD_LIBS to -pthread
for gcc 4.7.2
                 Project: GNU Autoconf Archive
            Submitted by: simons
            Submitted on: Wed 19 Jun 2013 09:49:38 AM CEST
                Priority: 5 - Normal
                  Status: In Progress
             Assigned to: simons
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any



Al reported the following issue on the maintainers mailing list:

Have you seen this thread on

Just ran into the same problem, using the packaged Fedora
autoconf-archive, and was rather surprised. The suggested patch in Craig
McQueen's answer looks good to me, but I didn't know if -pthread was
needed for compilation on some non-gcc compilers while passing some
other flag to the linker was needed (i.e. patch would break that case).

Helpful context:
$gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man -
-infodir=/usr/share/info -
-with-bugurl= --enable-bootstrap -
-enable-shared --enable-threads=posix --enable-checking=release -
-disable-build-with-cxx --disable-build-poststage1-with-cxx -
-with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions -
-enable-gnu-unique-object --enable-linker-build-id -
-with-linker-hash-style=gnu -
-enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto -
-enable-plugin --enable-initfini-array --enable-java-awt=gtk -
-disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj- -
-enable-libgcj-multifile --enable-java-maintainer-mode -
-with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 -
Thread model: posix
gcc version 4.7.2 20120921 (Red Hat 4.7.2-2) (GCC) 


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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