On Mon, Dec 06, 2010 at 02:32:01PM +0100, Olaf van der Spek wrote: > On Fri, Dec 3, 2010 at 11:38 PM, Olaf van der Spek <firstname.lastname@example.org> wrote: > > On Fri, Dec 3, 2010 at 11:22 PM, Roger Leigh <email@example.com> wrote: > >>> > The header is just a text file. It doesn't contain any library > >>> > dependency information (or version information) at all, and there's > >>> > >>> boost/version.hpp > >> > >> We only care about SONAME versions, not release versions, and we only > >> need to care about what is available to the linker, and headers aren't. > > > > The header file forwards it to the link via the pragma. > > > >>> > no way to associate a given header with any shared library at all. > >>> > >>> boost\filesystem\v3\config.hpp > >>> boost/config/auto_link.hpp > >> > >> These are using proprietary vendor-specific #pragmas. It's pretty > > > > True, but IMO the concept seems pretty useful. > > > > Why do you think it's horrible? It appears to work well. > > > >> horrible, not to mention fragile--if any header fails to include the > >> correct bits of magic, it all falls apart. If they had spent just > >> a fraction of the time implementing that to support pkg-config, we > >> wouldn't have a problem. > > > > g++ and MSVC don't use pkg-config (AFAIK). > > So the complexity is pushed down instead of up. > > > Olaf > > Roger? Yes? I didn't really have anything further to add to the discussion, unless I've missed something. Were you wanting something specific? I've got pkg-config generation on GNU/Linux working for all GCC targets, and submitted it upstream. It's using the same auto-link magic that all the other platforms use, for consistency. It should enable pkg-config support on all platforms. The only thing I'm lacking is the expertise to integrate it with upstream's build system, bjam. If you (or anyone else) has any understanding of it, that would be most helpful. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=248674 https://svn.boost.org/trac/boost/ticket/1094 (https://svn.boost.org/trac/boost/attachment/ticket/1094/auto-link-pkg-config.2.patch) Regards, Roger -- .''`. Roger Leigh : :' : Debian GNU/Linux http://people.debian.org/~rleigh/ `. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/ `- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
Description: Digital signature