On Mon, Dec 10, 2007 at 01:47:15PM -0500, Michael Poole wrote: > Steve Langasek writes: > >> > >> For example, pkg-config --libs gtk+-x11-2.0 will return, among others, > >> -lglib-2.0 and -lm. And this is perfectly intentional. > > > > Just because it's intentional doesn't mean it isn't absurd and wrong. > > What happens for a user who (however absurd or insane he might be to > try this with gtk+) tries to link his application statically? > > Perhaps the "absurd and wrong" part is that pkg-config does not > provide a way to distinguish between use cases, and that the name for > the current behavior should also be --static-libs rather than --libs, > but there is a good reason to provide the transitive closure of > dependencies for a package *somewhere* in pkg-config.
pkg-config *does* have a --static flag, which does appear to cause --libs to emit Libs.private and other things that would normally be handled by the dynamic-linking of shared libs. dan -- Daniel Macks [EMAIL PROTECTED] http://www.netspace.org/~dmacks -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]