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:36:53
On Wed, 20 Apr 2005 19:32:02 +0200
Matthias Drochner <M.Drochner@fz-juelich.de> wrote:
>
> juan@xtrarom.org said:
> > the code just does getenv(PKG_CONFIG_PATH)
>
> anf 5 lines later it unconditionally adds PKG_CONFIG_PC_PATH,
> which is a compile time constant.
Thanks I just found it, I suggest to do the following:
search_path = getenv ("PKG_CONFIG_PATH");
if (search_path) {
add_search_dirs(search_path, G_SEARCHPATH_SEPARATOR_S);
} else
add_search_dirs(PKG_CONFIG_PC_PATH, G_SEARCHPATH_SEPARATOR_S);
This should be safe for all cases, comments?