fix —optimize and —debug-symbols configure flags
authorRobin Gareus <robin@gareus.org>
Thu, 18 Dec 2014 09:22:45 +0000 (10:22 +0100)
committerRobin Gareus <robin@gareus.org>
Thu, 18 Dec 2014 09:22:45 +0000 (10:22 +0100)
“execv() arg 2 must contain only strings”

wscript

diff --git a/wscript b/wscript
index 67fc799763ca34c7335a2c70ec670e8057a7cc22..65ec4da5d516c197967c58faff4d3aa1f99896fd 100644 (file)
--- a/wscript
+++ b/wscript
@@ -470,10 +470,10 @@ int main() { return 0; }''',
             break
 
     if prepend_opt_flags:
-        optimization_flags[:0] = [ flags_dict['full-optimization'] ]
+        optimization_flags[:0] = flags_dict['full-optimization']
 
     if opt.debug_symbols:
-        optimization_flags += [ flags_dict['debuggable'] ]
+        optimization_flags += flags_dict['debuggable']
 
     if opt.stl_debug:
         cxx_flags.append("-D_GLIBCXX_DEBUG")