Index: build/linux/pkg-config-wrapper |
diff --git a/build/linux/pkg-config-wrapper b/build/linux/pkg-config-wrapper |
index fa76c2ea523bb7f41e92b95d797eba1798fee442..d94b99747d58f4f0e96cc5e47156ec74611e705a 100755 |
--- a/build/linux/pkg-config-wrapper |
+++ b/build/linux/pkg-config-wrapper |
@@ -11,4 +11,6 @@ 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 |
+set -e |
+result=`PKG_CONFIG_PATH=$config_path pkg-config --define-variable=prefix=/usr "$@"` |
+echo "$result"| $rewrite $root |