support single-quotation ''' to the value (pre_installation) for build flags configuration.
authorHajime Tazaki <tazaki@sfc.wide.ad.jp>
Tue, 04 Mar 2014 11:00:38 +0900
changeset 302 bfac6b6d740a
parent 301 c3d019807d3c
child 303 400e9db10676
support single-quotation ''' to the value (pre_installation) for build flags configuration. example: <attribute name="pre_installation" value="CFLAGS='-fPIC -g' LDFLAGS='-pie -rdynamic' ./configure"/>
bake/ModuleBuild.py
--- a/bake/ModuleBuild.py	Sun Feb 02 11:04:20 2014 -0800
+++ b/bake/ModuleBuild.py	Tue Mar 04 11:00:38 2014 +0900
@@ -31,6 +31,7 @@
 import commands
 import re
 import sys
+import shlex
 from bake.Utils import ModuleAttributeBase
 from bake.Exceptions import NotImplemented
 from bake.Exceptions import TaskError 
@@ -760,7 +761,7 @@
             if not "--prefix" in command:
                 command = command + ' --prefix=' + env.objdir
                 
-            command= bake.Utils.split_args(command)
+            command = shlex.split(command)
             env.run(command, directory=env.objdir)