Follow-up Comment #3, bug #20754 (project mypaint):
It all was because python:2.7 was built with the debug information, so
`python-config --cflags` returned -O0 among the other flags.
The following patch fixed that for me.
--- mypaint-1.1.0.orig/lib/SConscript 2013-01-01 00:03:38.000000000 +0700
+++ mypaint-1.1.0/lib/SConscript 2013-12-01 15:32:16.570748951 +0700
@@ -101,6 +100,9 @@
# make sure assertions are enabled
env['CPPDEFINES'].remove('NDEBUG')
+env['CCFLAGS'] = ([o for o in env['CCFLAGS'] if not o.startswith('-O')] +
+ [o for o in env['CCFLAGS'] if o.startswith('-O')][:1])
+
# python extension module
src = 'mypaintlib_wrap.cpp'
module = build_py_module(env, '../_mypaintlib', Split(src), SHLIBPREFIX="")
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?20754>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Mypaint-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-bugs