Forwarding to list ---------- Forwarded message ---------- From: Daniel Ziólkowski <ziolko...@gmail.com> Date: 10 March 2013 22:58 Subject: Re: [Mypaint-discuss] scons - can't compile MyPaint, g++ options of unknown origin To: Jon Nordby <jono...@gmail.com>
2013/3/9 Jon Nordby <jono...@gmail.com>: > The MyPaint scons file does neither add "-OPT:Olimit=0" nor > "-march=core2 -O2 -fplugin=/usr/lib64/llvm/dragonegg.so". > It will capture CFLAGS/CXXFLAGS from the environment, so please first > try to "unset CFLAGS" and "unset CXXFLAGS" before trying to build. > Furthermore, it will use cflags as specified by its dependencies in > their pkg-config files. So try to do "pkg-config --cflags json-c > python gtk-2.0 lcms-2.0" (note: names of the dependencies are from my > head, check with the scons file for the exact names). Could also grep > your pkg-config files for this strange -OPT thing. There was nothing wrong with pkg-config nor CFLAGS/CXXFLAGS. Scons ignore all variables from command line by the way. However I did little dirty hack and added > env["CC"] = os.getenv("CC") or env["CC"] > env["CXX"] = os.getenv("CXX") or env["CXX"] > env["LINK"] = os.getenv("LINK") or env["LINK"] > env["ENV"].update(x for x in os.environ.items() if x[0].startswith("CCC_")) to SConstruct and then compiled with 'CC=clang CXX=clang++ LINK=g++ scons'. It worked, but don't ask me why/how, I have no idea. Probably there is something hardcoded in my scons or something. However the most important thing is that MyPaint have compiled and works. :) -- Daniel "Tracerneo" Ziółkowski -- Jon Nordby - www.jonnor.com _______________________________________________ Mypaint-discuss mailing list Mypaint-discuss@gna.org https://mail.gna.org/listinfo/mypaint-discuss