On 04 Feb 2015, at 23:58, Andreas Fritiofson <andreas.fritiof...@gmail.com> 
wrote:

> Then it's PKG_CONFIG_LIBDIR you want.

On 05 Feb 2015, at 00:35, Liviu Ionescu <i...@livius.net> wrote:

> I'll check the difference between PKG_CONFIG_LIBDIR and PKG_CONFIG_DIR and 
> come back to you with the result.


I checked the pkg-config source code and you are right, in order to completely 
overwrite the system location, the PKG_CONFIG_LIBDIR environment need to be set:

for those interested in details, the logic behind these two environment 
variables is:

  search_path = getenv ("PKG_CONFIG_PATH");
  if (search_path) 
    {
      add_search_dirs(search_path, G_SEARCHPATH_SEPARATOR_S);
    }
  if (getenv("PKG_CONFIG_LIBDIR") != NULL) 
    {
      add_search_dirs(getenv("PKG_CONFIG_LIBDIR"), G_SEARCHPATH_SEPARATOR_S);
    }
  else
    {
      add_search_dirs(pkg_config_pc_path, G_SEARCHPATH_SEPARATOR_S);
    }


thank you for pointing this up.

Liviu


------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to