Jens Staal
2014-10-01 03:34:22 UTC
Hi
One thing I am trying to do at the moment (slowly because RL stuff takes
much time) is to package several "core" libraries for OpenWatcom
(cross-)compilation on Arch linux (for starters, targets are linux, dos 16-
and 32-bit, win32).
As a first practice package, I choose zlib since it is a small and nicely
behaving source.
The dos targets already had wmake files so those were easy
linux and win32 static libraries built nicely too
For win32, I used "owcc" and modified the GNU makefile (Makefile.gcc) under
the win32 directory. wrc could handle the zlib1.rc for the static library.
For the dynamic library however I also need to somehow make use of the
"zlib.def" definition file (the same file is used for both mingw and msvc
builds). The Watcom wiki just quickly mentions definition files in its dll
section without saying how those are used.
some pointers would be appreciated ;) (or if there are more general tips-
and-tricks regarding building dlls I am also interested in those)
PS. Is there any corresponding "owcc" for wpp/wpp386? Right now I can
substitute "gcc" for "owcc" but how should I substitute "g++"? Ds.
One thing I am trying to do at the moment (slowly because RL stuff takes
much time) is to package several "core" libraries for OpenWatcom
(cross-)compilation on Arch linux (for starters, targets are linux, dos 16-
and 32-bit, win32).
As a first practice package, I choose zlib since it is a small and nicely
behaving source.
The dos targets already had wmake files so those were easy
linux and win32 static libraries built nicely too
For win32, I used "owcc" and modified the GNU makefile (Makefile.gcc) under
the win32 directory. wrc could handle the zlib1.rc for the static library.
For the dynamic library however I also need to somehow make use of the
"zlib.def" definition file (the same file is used for both mingw and msvc
builds). The Watcom wiki just quickly mentions definition files in its dll
section without saying how those are used.
some pointers would be appreciated ;) (or if there are more general tips-
and-tricks regarding building dlls I am also interested in those)
PS. Is there any corresponding "owcc" for wpp/wpp386? Right now I can
substitute "gcc" for "owcc" but how should I substitute "g++"? Ds.