[Ocfs2-tools-devel] [PATCH] ocfs2-tools/build: Add -lpthread when building static programs
Joel Becker
Joel.Becker at oracle.com
Mon Mar 15 14:37:36 PDT 2010
On Mon, Mar 15, 2010 at 01:40:18PM -0700, Mark Fasheh wrote:
> I'd be happy to add some auto detection... The question is how?
>
> We could do this (in configure.in?) and search on pthread:
>
> ldd /lib64/libcom_err.so.2
> linux-vdso.so.1 => (0x00007fffa69ff000)
> libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f3cc94f7000)
> libc.so.6 => /lib64/libc.so.6 (0x00007f3cc919b000)
> /lib64/ld-linux-x86-64.so.2 (0x00007f3cc9945000)
My original thought was to try linking a program that uses
com_err and seeing if it fails. But I was too lazy to put in the
effort. Perhaps grepping ldd is good enough ;-)
Joel
--
"Sometimes when reading Goethe I have the paralyzing suspicion
that he is trying to be funny."
- Guy Davenport
Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
More information about the Ocfs2-tools-devel
mailing list