[jhbuild] autotools: Pass --disable-Werror before, not after, user flags



commit d756eca434fb336ae3c0dd111c7e6fc6ce125152
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Mon Feb 8 14:33:46 2016 -0600

    autotools: Pass --disable-Werror before, not after, user flags
    
    I want to be able to module_autogenargs['epiphany'] = '--enable-Werror'
    which currently does not work because JHBuild passes --disable-Werror
    after the user flags.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=761730

 jhbuild/modtypes/autotools.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/modtypes/autotools.py b/jhbuild/modtypes/autotools.py
index b5eb90e..eb8ce67 100644
--- a/jhbuild/modtypes/autotools.py
+++ b/jhbuild/modtypes/autotools.py
@@ -116,7 +116,7 @@ class AutogenModule(MakeModule, DownloadableModule):
                 self.name, self.config.autogenargs)
 
         if self.config.disable_Werror:
-            autogenargs = autogenargs + ' ' + '--disable-Werror'
+            autogenargs = '--disable-Werror' + ' ' + autogenargs
 
         vars = {'prefix': os.path.splitdrive(buildscript.config.prefix)[1],
                 'autogen-sh': self.autogen_sh,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]