linux (sysroot): force prefix=/usr in pkg-config

This lets us use portage-based cross-compiled sysroots, that force the prefix to be an absolute path within the portage chroot.
In particular that lets us build the ARM sysroot using the Chrome OS build system.
Ubuntu-based sysroots already have prefix=/usr, so this is a no-op in that case.

Review URL: http://codereview.chromium.org/669139

git-svn-id: http://src.chromium.org/svn/trunk/src/build@40712 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
piman@chromium.org 2010-03-05 03:39:44 +00:00
Родитель 86ba57b19f
Коммит 7a048dfea9
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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 "$@" | $rewrite $root
PKG_CONFIG_PATH=$config_path pkg-config --define-variable=prefix=/usr "$@" | $rewrite $root