Subject: -pthread, -lgthread and libtool
To: None <tech-pkg@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-pkg
Date: 05/17/2005 16:45:27
Hi all,
I'm running into strange interactions between libtool and pkgconfig.
An application which links against libgthread needs to link against
the system thread library, on DragonFly this is [historically] done
via -pthread. This flag is not recorded in the dependency list
of libgthread.la, but is correctly determined by pkgconfig.
This works fine as long as the programs use the pkgconfig flags
to link program, but breaks e.g. for net/ORBit2 which depends on
libtool for the linking of name-client.
The question is, what is the correct fix? Teach the programs to
use the pkgconfig LDFLAGS for the programs too [which is IMO
better than the current usage for lib only], fix libtool [how?]
or is there another option?
JoergThis flag is not recorded in the dependency list
of libgthread.la, but is correctly determined by pkgconfig.
This works fine as long as the programs use the pkgconfig flags
to link program, but breaks e.g. for net/ORBit2 which depends on
libtool for the linking of name-client.
The question is, what is the correct fix? Teach the programs to
use the pkgconfig LDFLAGS for the programs too [which is IMO
better than the current usage for lib only]? Fix libtool to
include -pthread in the depency list [how?]? Another option?
Joerg