Bug 157 - patch for PKG_CONFIG_CROSS variable
Summary: patch for PKG_CONFIG_CROSS variable
Alias: None
Product: pkg-config
Classification: Unclassified
Component: src (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: high normal
Assignee: Havoc Pennington
QA Contact:
Depends on:
Reported: 2003-12-03 03:31 UTC by Phil Blundell
Modified: 2005-04-01 07:17 UTC (History)
0 users

See Also:
i915 platform:
i915 features:

patch (2.54 KB, patch)
2003-12-03 03:32 UTC, Phil Blundell
Details | Splinter Review

Description Phil Blundell 2003-12-03 03:31:05 UTC
When pkg-config is being used in a cross-compiling environment, it's useful to be able to have it automatically prepend the path to the cross tree (usually something like "/usr/arm-linux") onto the filenames it generates.  This patch adds a new environment variable which can be used for that.
Comment 1 Phil Blundell 2003-12-03 03:32:58 UTC
Created attachment 79 [details] [review]
Comment 2 Tollef Fog Heen 2005-04-02 01:17:44 UTC
If you build current pkg-config with --prefix=/usr/arm-linux, it will look in
/usr/arm-linux/lib/pkgconfig and /usr/arm-linux/share/pkgconfig for the .pc
files.    (If you want another path, you can use --with-pc-path=$foo:$bar:$baz
to specify.

I am going to provide more cross-compilation support, but this should satisfy
you for now.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.