autoconf-archive-maintainers | |
[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 |
URL:
<http://savannah.gnu.org/patch/?8081>
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
_______________________________________________________
Details:
Al reported the following issue on the maintainers mailing list:
Have you seen this thread on stackoverflow.com?
http://stackoverflow.com/questions/17055279/autotools-for-pthreads-not-setting-correct-linker-flags
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.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man -
-infodir=/usr/share/info -
-with-bugurl=http://bugzilla.redhat.com/bugzilla --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-1.5.0.0/jre -
-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 -
-build=x86_64-redhat-linux
Thread model: posix
gcc version 4.7.2 20120921 (Red Hat 4.7.2-2) (GCC)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?8081>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/