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

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

Issue 244593002: pkg-config-wrapper: use system_libdir for libpath (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 14ee01bb2dad052c13299241c23a5809cae1c88a..b7595645a11f434ce67a666e5fd58219f47b2b54 100755
--- a/build/linux/pkg-config-wrapper
+++ b/build/linux/pkg-config-wrapper
@@ -19,18 +19,20 @@ root="$1"
shift
target_arch="$1"
shift
+libpath="$1"
+shift
if [ -z "$root" -o -z "$target_arch" ]
then
- echo "usage: $0 /path/to/sysroot target_arch [pkg-config-arguments] package" >&2
+ echo "usage: $0 /path/to/sysroot target_arch libdir [pkg-config-arguments] package" >&2
exit 1
fi
if [ "$target_arch" = "x64" ]
then
- libpath="lib64"
+ : ${libpath:="lib64"}
Alexander Potapenko 2014/06/03 08:52:23 |libpath| (which is |system_libdir| is always "lib
vapier 2014/06/03 14:15:09 if system_libdir is being set to lib on x64, then
else
- libpath="lib"
+ : ${libpath:="lib"}
fi
rewrite=`dirname $0`/rewrite_dirs.py
« 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