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

Side by Side Diff: build/linux/pkg-config-wrapper

Issue 669139: linux (sysroot): force prefix=/usr in pkg-config (Closed)
Patch Set: Created 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 2
3 root="$1" 3 root="$1"
4 if [ -z "$root" ] 4 if [ -z "$root" ]
5 then 5 then
6 echo "usage: $0 /path/to/sysroot [pkg-config-arguments]" >&2 6 echo "usage: $0 /path/to/sysroot [pkg-config-arguments]" >&2
7 exit 1 7 exit 1
8 fi 8 fi
9 9
10 rewrite=`dirname $0`/rewrite_dirs.py 10 rewrite=`dirname $0`/rewrite_dirs.py
11 11
12 shift 12 shift
13 config_path=$root/usr/lib/pkgconfig:$root/usr/share/pkgconfig 13 config_path=$root/usr/lib/pkgconfig:$root/usr/share/pkgconfig
14 PKG_CONFIG_PATH=$config_path pkg-config "$@" | $rewrite $root 14 PKG_CONFIG_PATH=$config_path pkg-config --define-variable=prefix=/usr "$@" | $re write $root
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698