Index: src/platform/update_engine/SConstruct |
diff --git a/src/platform/update_engine/SConstruct b/src/platform/update_engine/SConstruct |
index 0d124d96b6336187b950cfe591dfe45e45da73a0..c80ceeb75e7dfcb7ebe1cf95c9ecd0fa6930dbc6 100644 |
--- a/src/platform/update_engine/SConstruct |
+++ b/src/platform/update_engine/SConstruct |
@@ -67,6 +67,12 @@ env['LIBS'] = Split("""base |
env['CPPPATH'] = ['..', '../../third_party/chrome/files', '../../common'] |
env['LIBPATH'] = ['../../third_party/chrome'] |
env['BUILDERS']['ProtocolBuffer'] = proto_builder |
+ |
+# Fix up the pkg-config path if it is present in the environment. |
+for key in Split('PKG_CONFIG_LIBDIR PKG_CONFIG_PATH'): |
+ if os.environ.has_key(key): |
+ env['ENV'][key] = os.environ[key] |
+ |
env.ParseConfig('pkg-config --cflags --libs glib-2.0') |
env.ProtocolBuffer('update_metadata.pb.cc', 'update_metadata.proto') |