Follow-up Comment #5, bug #19119 (project mypaint):
So I guess what I'm suggesting is really this:
diff --git a/SConstruct b/SConstruct
index 1b626b1..7a348af 100644
--- a/SConstruct
+++ b/SConstruct
@@ -52,8 +52,15 @@ if sys.platform == "win32":
pre,inc = sysconfig.get_config_vars('exec_prefix', 'INCLUDEPY')
env.Append(CPPPATH=inc, LIBPATH=pre+'libs',
LIBS='python'+sys.version[0]+sys.version[2])
elif sys.platform == "darwin":
- env.ParseConfig('python-config --cflags')
- env.ParseConfig('python-config --ldflags')
+ env.ParseConfig(python + '-config --cflags')
+ ldflags = env.backtick(python + '-config --ldflags').split()
+ # scons does not seem to parse '-u' correctly
+ # put all options after -u in LINKFLAGS
+ if '-u' in ldflags:
+ idx = ldflags.index('-u')
+ env.Append(LINKFLAGS=ldflags[idx:])
+ del ldflags[idx:]
+ env.MergeFlags(' '.join(ldflags))
else:
# some distros use python2.5-config, others python-config2.5
try:
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?19119>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Mypaint-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-bugs