[Ocfs2-tools-devel] [PATCH] ocfs2-tools/build: Add -lpthread when building static programs

Mark Fasheh mfasheh at suse.com
Mon Mar 15 13:40:18 PDT 2010


On Mon, Mar 15, 2010 at 01:22:47PM -0700, Joel Becker wrote:
> On Mon, Mar 15, 2010 at 12:47:23PM -0700, Mark Fasheh wrote:
> > This fixes the following build errors on latest SUSE and OpenSUSE releases:
> 
> 	What about systems where libcomerr isn't linked against
> libpthread?  Do we want to detect that, or just force libpthread on
> folks?

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)


Do you know of a better way?
	--Mark

--
Mark Fasheh



More information about the Ocfs2-tools-devel mailing list