public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* Using newlib as substitute to msvcrt.dll on wind32 and mingw?
@ 2017-02-28 11:40 Hartmut Goebel
  0 siblings, 0 replies; only message in thread
From: Hartmut Goebel @ 2017-02-28 11:40 UTC (permalink / raw)
  To: newlib

Hi,

for a win32 project (www.pyinstaller.org) I need to replace the
dynamically linked msvcrt.dll by a static library. Linking wih
mscvdt.dll is not an option since this conflicts with other msvcrt*.dlls
required by the python.dll.

PyInstaller's C-code only uses a few simple functions like alloc,
memcopy, some string functions and some simple file-io (fseek). Thus the
lib could be stripped down to a bare minimum if this helps building it.
The code is cross-compiled on linux using mingw64.

Main question is: Can I use newlib for this task?

Is so, I'd appreciate some advise:

- How to compile newlib using mingw64? (I tried and failed.)
- Any options to be passed to mingw-gcc for linking with newlib?
- Other points to consider?

Please apologize my questions, I'm not a C-programmer but a Python user :-)

Side-note: I already tried linking with teh pre-build libc.a taken from
the cygwin distribution package. But this gave me "multiple definition"
errors.

Thanks in advance.

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-02-28 11:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-28 11:40 Using newlib as substitute to msvcrt.dll on wind32 and mingw? Hartmut Goebel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).