pkg-config

Richard Atterer <[email protected]> Mon, 28 Apr 2003 13:01:44 +0200
Newsgroups gmane.comp.video.gimp.windows.devel
Message-ID <[email protected]>
On Sun, Apr 27, 2003 at 08:52:59PM +0300, Tor Lillqvist wrote:
> The pkg-config program has been especially enhanced to take care of
> this. When compiled for Win32 (*not* if compiled for Cygwin, which is
> just a particular kind of Unix), it automatically replaces the
> "prefix" variable in .pc filles with the actual prefix deduced at
> run-time from the location of the .pc file.

IMHO this behaviour is not the best solution because it only works if you 
build under Windows. I cross-compile from Linux, so I have to kludge around 
the issue by setting PKG_CONFIG_PATH and using 
"--define-variable=prefix=..."

A nicer solution would be to allow relative paths in .pc files (relative to
the directory which contains the .pc file), then just setting
PKG_CONFIG_PATH would be enough.

Cheers,

  Richard

-- 
  __   _
  |_) /|  Richard Atterer     |  CS student at the Technische  |  GnuPG key:
  | \/¯|  http://atterer.net  |  Universität München, Germany  |  0x888354F7
  ¯ '` ¯