Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(654)

Unified Diff: build/linux/pkg-config-wrapper

Issue 9654001: Fix pkgconfig wrapper for 64 bits (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/linux/system.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/linux/pkg-config-wrapper
diff --git a/build/linux/pkg-config-wrapper b/build/linux/pkg-config-wrapper
index 4b5455b8e9a0522822b6151268d06735c9dbe448..0067661a9ba5191e8f425eba2da55d37665567af 100755
--- a/build/linux/pkg-config-wrapper
+++ b/build/linux/pkg-config-wrapper
@@ -13,17 +13,27 @@
# directory of a Chromium OS chroot.
root="$1"
-if [ -z "$root" ]
+shift
+target_arch="$1"
+shift
+
+if [ -z "$root" -o -z "$target_arch" ]
then
- echo "usage: $0 /path/to/sysroot [pkg-config-arguments] package" >&2
+ echo "usage: $0 /path/to/sysroot target_arch [pkg-config-arguments] package" >&2
exit 1
fi
+if [ "$target_arch" = "x64" ]
+then
+ libpath="lib64"
+else
+ libpath="lib"
+fi
+
rewrite=`dirname $0`/rewrite_dirs.py
package=${!#}
-shift
-config_path=$root/usr/lib/pkgconfig:$root/usr/share/pkgconfig
+config_path=$root/usr/$libpath/pkgconfig:$root/usr/share/pkgconfig
set -e
# Some sysroots, like the Chromium OS ones, may generate paths that are not
# relative to the sysroot. For example,
« no previous file with comments | « no previous file | build/linux/system.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698