
Could you please point me source files where to look/digg: "configure" phase building and pypy-c executable building. As I see now, /MT flag I used applies to all compiled binaries and you suggest using it only during first building process? Any ideas about building manifest file to proper msvcrt.dll linking?
The /MT flag is a nice trick. But the ctypes module of the generated pypy-c will not work correctly: get_libc() is supposed to return the MSVCRT.dll linked with the executable, this function won't work if the c runtime is linked statically.
The best would be to use /MT (=static C runtime) to build extension modules (during the "configure" phase) and /MD (=shared C runtime) when building the pypy-c executable.
-- Amaury Forgeot d'Arc

On Wed, Jan 21, 2009 at 00:12, Vetoshkin Nikita <nvetoshkin@naumen.ru> wrote:
Could you please point me source files where to look/digg: "configure" phase building and pypy-c executable building. As I see now, /MT flag I used applies to all compiled binaries and you suggest using it only during first building process?
Yes. My suggestion was that "standalone" builds should use /MD and shared libraries ("not standalone") use /MT. But I realize that this would not solve all problems.
Any ideas about building manifest file to proper msvcrt.dll linking?
I am currently trying to to it, borrowing ideas from cpython's code: http://svn.python.org/view/python/trunk/Lib/distutils/msvc9compiler.py?rev=68081&view=markup look for "manifest" -- Amaury Forgeot d'Arc

On Wed, Jan 21, 2009 at 00:12, Vetoshkin Nikita <nvetoshkin@naumen.ru> wrote:
Any ideas about building manifest file to proper msvcrt.dll linking?
I just changed the compilation tools in windows.py to build and embed this manifest. Can you try again? -- Amaury Forgeot d'Arc

I've got this now: http://pastebin.com/d4f3dfefd 21.01.2009 6:14, Amaury Forgeot d'Arc пишет:
On Wed, Jan 21, 2009 at 00:12, Vetoshkin Nikita<nvetoshkin@naumen.ru> wrote:
Any ideas about building manifest file to proper msvcrt.dll linking?
I just changed the compilation tools in windows.py to build and embed this manifest. Can you try again?

On Wed, Jan 21, 2009 at 02:42, Vetoshkin Nikita <nvetoshkin@naumen.ru> wrote:
I've got this now: http://pastebin.com/d4f3dfefd
This output is missing the few lines that can be important. I would like to see the (long) lines starting with "[platform:execute] link.exe..." and "[platform:execute] mt.exe..." and which contain the manifest file name -- Amaury Forgeot d'Arc

On Wed, Jan 21, 2009 at 02:42, Vetoshkin Nikita <nvetoshkin@naumen.ru> wrote:
I've got this now: http://pastebin.com/d4f3dfefd
Oh, and did you reset the /MD option? /MT is wrong now. -- Amaury Forgeot d'Arc

Sorry, I was wrong. It works fine... awaiting translation to complete =) 21.01.2009 6:14, Amaury Forgeot d'Arc пишет:
On Wed, Jan 21, 2009 at 00:12, Vetoshkin Nikita<nvetoshkin@naumen.ru> wrote:
Any ideas about building manifest file to proper msvcrt.dll linking?
I just changed the compilation tools in windows.py to build and embed this manifest. Can you try again?
participants (2)
-
Amaury Forgeot d'Arc
-
Vetoshkin Nikita