[Mono-osx] Mac OSX and /etc/profile.d

Andreas Färber andreas.faerber at web.de
Wed Mar 18 16:01:02 EDT 2009


Am 18.03.2009 um 20:48 schrieb Rusty Howell:

> Geoff Norton wrote:
>> On 03/18/2009 02:24 PM, Rusty Howell wrote:
>>> Hey everyone,
>>> What's the proper thing to do with pkg-config files?  Mono on OSX
>>> isntalls a bunch of .pc files in
>>> /Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig
>>> But in order to use them, the user must set PKG_CONFIG_PATH.  I  
>>> see that
>>> most pkg-config files are in /opt/local/lib/pkgconfig or
>>> /opt/local/share/pkgconfig.  Should the Mono installation process
>>> install (or symlink) .pc files in one of those directories, or  
>>> should
>>> Mono leave the .pc files where they are and set PKG_CONFIG_PATH
>>> somewhere.
>> You have installed macports which is why this is.
>> -g
> Could you explain this a bit more? I don't know much about macports  
> and
> why it's affecting this.

MacPorts installs its stuff to /opt/..., that's probably why you  
have .pc files there.

pkg-config is originally a Linux or GNOME tool, so the best you can do  
is to patch pkg-config to search the Versions/Current/lib/pkgconfig  
subdirectory of every framework installed. Or just have your profile  
script set PKG_CONFIG_PATH to include the frameworks you need.


More information about the Mono-osx mailing list