]> Savannah Git Hosting - gnulib.git/commit
pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 4 Sep 2014 21:55:12 +0000 (14:55 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 4 Sep 2014 21:57:45 +0000 (14:57 -0700)
commitc76f7ed9b7805797a628727d10dcc2ada9c3bdfc
tree1f0b6e2f17c5586646d21bb84ed9581f293b0e2f
parent4738e5acde5e5b239605fd561ac4401f9b432ba6
pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04

Problem reported by Assaf Gordon in:
http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html
Apparently Ubuntu is doing some fancy link-time optimization
that doesn't work with -lpthread but does work with -pthread.
Work around the bug by preferring -pthread to -lpthread.
This change affects only LIBS, not CFLAGS, which is a little
weird, but it works.
* m4/pthread.m4 (gl_PTHREAD_CHECK):
* m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
* m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
Treat -pthread like -lpthread.
ChangeLog
m4/pthread.m4
m4/pthread_sigmask.m4
m4/threadlib.m4