[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: Daniel Richard G.
Subject: [patch #8081] AX_PTHREAD.m4 not setting PTHREAD_LIBS to -pthread for gcc 4.7.2
Date: Wed, 19 Jun 2013 16:16:07 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.22 (KHTML, like Gecko) Ubuntu Chromium/25.0.1364.160 Chrome/25.0.1364.160 Safari/537.22

Follow-up Comment #1, patch #8081 (project autoconf-archive):

As far as I could tell, the issue came down to not using PTHREAD_CFLAGS at
link time. This is why the comment on lines 21-23 of m4/ax_pthread.m4 is

Flags like -pthread need to be used at both the compile step and the link
step, and rather than duplicate these flags between PTHREAD_CFLAGS and
PTHREAD_LIBS, it makes more sense to keep them in PTHREAD_CFLAGS, have
PTHREAD_LIBS contain bits that are only needed at link time (like -lfoo
directives), and use both variables when linking.

(I don't rule out the possibility of there being an actual problem here, but I
haven't seen a clear indication of that yet.)


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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