|
From: | Al Pacifico |
Subject: | Re: [patch #8081] AX_PTHREAD.m4 not setting PTHREAD_LIBS to -pthread for gcc 4.7.2 |
Date: | Wed, 19 Jun 2013 11:00:36 -0700 |
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
there.
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:
<http://savannah.gnu.org/patch/?8081>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |