Sam Lantinga wrote:
Just in case it is not known - the newest libtool release 1.4
can crosscompile a dll - it has the patches from Sam, and even
some extensions, e.g. sdl-patched libtool can not crosscompile
a --module dll. I had to learn a few bits, but anyway newest
libtool supports sharedlibs on quite a few more platforms than
ever before. May be it’s a good time to update the toolchest
even more - what do you think, Sam?
Well, I just spent the afternoon copying the libtool release 1.4
files into the SDL distribution and trying to build on various
platforms. Maybe it’s my ignorance, but I wasn’t able to get the
stock libtool to build a working library on Linux, much less a DLL
for Windows.
Rather than spend a few days fixing libtool again, I’ll leave things
the way they are, until somebody submits working patches.
The libtool must generate working libraries on Linux, FreeBSD, OpenBSD,
BeOS, Mingw32 (native and cross-compiled), Cygwin, and MacOS X.
The SDL libraries on Linux, FreeBSD, and OpenBSD should be dynamically
linked against some system libraries and statically linked with others.
The SDL library on Windows must be a DLL that depends on GDI32, USER32,
and WINMM.
The SDL library on BeOS must be a shared library that depends on root,
be, media, game, device, and textencoding.
The SDL library on MacOS X will be a static library.
If somebody is willing to get that much working with the latest libtool,
I’ll be happy to accept updated patches.
I had been playing around with newest libtool lately, and
especially crosscompiling with libsdl.org/Xmingw32 from
linux to xmingw32 (but for my own projects) so I’ll see
to help with these experiences in this quest as good as I can.
basically, I did install all new autotools in the local/cross-tools
directory, cvs-autoconf, automake-1.4d, libtool-1.4 - just
compile from source-tarballs using the correct --prefix (and
host/target settings). The redo autotools for your project,
it will not need ltconfig anymore, but depcomp as a new file.
It results in updating the project to all the brandnew autotools
around - which is partly the most easiest but it will also bring
about some problems ('had a problem on mac-os-x f.e.) just
because these tools are so, well, neeewwww. As the autotools
group is currently preparing a round of updates/releases, I’d
propose to wait 2-3 weeks and see. I’ll keep you informed.
For anything about it, just keep on asking, at the moment I am
a bit low on sparetime to make up a good patch-series for you
to look into - updating to libtool-1.4 should be possible with
a patched-old-automake even now without much problems. Mostly
the problem is to delete (!!) ltconfig and update the libtool.m4
along with patching automake to not install it - and it needs
perhaps another option that I don’t remember at the moment.
cheers,
– guido http://savannah.gnu.org/projects/ac-archive
31:GCS/E/S/P C++$++++ ULHS L++w- N++@ d(±) s+a- h.r(*@)>+++ y++ 5++X-