Mac OS X support: handle frameworks like libraries?

Tollef Fog Heen tfheen at
Mon Jun 29 20:15:20 PDT 2009

]] Benny Siegert 

| The way I see it, -Fpath (framework search path) is equivalent to -Lpath 
| for libraries. Thus, -F should maybe be included in the output of 
| "pkg-config --libs-only-L". The same thing goes for the "-framework name" 
| linker option, which is more or less the same thing as "-lname", namely 
| linking against a certain library/framework. Thus, the -framework option 
| (with argument) should be added to the output of --libs-only-l.

I'm somewhat divided on this -- on one hand, I see that the semantics of
frameworks is quite similar to regular libraries.  On the other hand,
the switches are called -only-l and -only-L, so getting something else
entirely in there would be somewhat surprising.

Ideally, I'd rather like the only-l and only-L options to go away, since
they shouldn't be needed -- if they are, it's a sign we are doing
something wrong in pkg-config.  An alternative would be for the to be
called --libs-path and --libs-names (or something along those lines),
but I'd rather not break the command line API.

Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are

More information about the pkg-config mailing list