summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2016-04-21 16:16:37 -0400
committerTim-Philipp Müller <tim@centricular.com>2016-04-23 11:23:57 +0100
commitfaf09512e787e83c8e13316bce31d57d3c1b28f9 (patch)
treeab42ce01fd820aac5a863bc18b03f920de0742c8
parenta035b59237bf6dabbb9299584d2e92da834a5edf (diff)
Unset MAKEFLAGS env variable when building makefile recipes
This avoids having user settings messing up our build. https://bugzilla.gnome.org/show_bug.cgi?id=765394
-rw-r--r--cerbero/build/build.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cerbero/build/build.py b/cerbero/build/build.py
index 9aebf7a5..c334b18c 100644
--- a/cerbero/build/build.py
+++ b/cerbero/build/build.py
@@ -127,6 +127,9 @@ class MakefilesBase (Build):
self.make += ' -j%d' % self.config.num_of_cpus
self._old_env = None
+ # Make sure user's env doesn't mess up with our build.
+ self.new_env['MAKEFLAGS'] = None
+
@modify_environment
def configure(self):
if not os.path.exists(self.make_dir):