Subject: Re: pkg-config vs. buildlink3
To: None <M.Drochner@fz-juelich.de>
From: Juan RP <juan@xtrarom.org>
List: tech-pkg
Date: 04/20/2005 19:34:03
On Wed, 20 Apr 2005 19:23:38 +0200
Juan RP <juan@xtrarom.org> wrote:

> On Wed, 20 Apr 2005 19:19:43 +0200
> Matthias Drochner <M.Drochner@fz-juelich.de> wrote:

> > The problem is that PKG_CONFIG_PATH doesn't quite do the
> > same -- as said, the system pkgconfig path is always
> > searched, so we can't hide packages anymore by means
> > of buildlink3.

You are right:

  search_path = getenv ("PKG_CONFIG_PATH");
  if (search_path)
    {
      add_search_dirs(search_path, G_SEARCHPATH_SEPARATOR_S);
    }

  add_search_dirs(PKG_CONFIG_PC_PATH, G_SEARCHPATH_SEPARATOR_S);

PKG_CONFIG_PC_PATH is defined at build time so we need to remove the
PKG_CONFIG_PC_PATH from add_search_dirs().