summaryrefslogtreecommitdiffstats
path: root/build/linux/pkg-config-wrapper
diff options
context:
space:
mode:
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-09 22:04:05 +0000
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-09 22:04:05 +0000
commit270d2282c844162df308c2f38e88ce5e778e699f (patch)
treebc0198028058ed6e15dfaba622cdd24814c230bf /build/linux/pkg-config-wrapper
parent6fbda0ee0d385c8f9eb3f73348fda2b5ca92bd68 (diff)
downloadchromium_src-270d2282c844162df308c2f38e88ce5e778e699f.zip
chromium_src-270d2282c844162df308c2f38e88ce5e778e699f.tar.gz
chromium_src-270d2282c844162df308c2f38e88ce5e778e699f.tar.bz2
Fix pkg-config-wrapper to work with chromiumos chroots
Some pkg-config packages in chromium os (e.g. gtk) end up hard-coding libdir to be absolute (rather than relative to prefix), so it breaks builds from outside the chroot. This works around it. BUG=none TEST=build with sysroot=/path/to/chromiumos/chroot/build/x86-generic Review URL: http://codereview.chromium.org/4516002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65580 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/linux/pkg-config-wrapper')
-rwxr-xr-xbuild/linux/pkg-config-wrapper2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/linux/pkg-config-wrapper b/build/linux/pkg-config-wrapper
index fa76c2e..6ce9e2a 100755
--- a/build/linux/pkg-config-wrapper
+++ b/build/linux/pkg-config-wrapper
@@ -11,4 +11,4 @@ rewrite=`dirname $0`/rewrite_dirs.py
shift
config_path=$root/usr/lib/pkgconfig:$root/usr/share/pkgconfig
-PKG_CONFIG_PATH=$config_path pkg-config --define-variable=prefix=/usr "$@" | $rewrite $root
+PKG_CONFIG_PATH=$config_path pkg-config --define-variable=prefix=/usr --define-variable=libdir=/usr/lib "$@" | $rewrite $root