From: Luke D. <cod...@ho...> - 2004-12-30 04:27:07
|
----- Original Message ----- From: "Erik de Castro Lopo" <mi...@me...> To: <min...@li...> Sent: Thursday, December 30, 2004 11:09 AM Subject: Re: [Mingw-users] Compiling a librsync .dll (shared library compilation using autotools) > On Thu, 30 Dec 2004 13:28:07 +1100 > Mike Tyson <mi...@tz...> wrote: > >> Hi! >> >> I'm developing a (currently) commercial application that uses librsync >> to transfer files. As librsync is LGPL, I need to link dynamically to >> the library, so that users can replace the library as they see fit. >> I can cross-compile (from Linux) a static library (.a) with mingw32, but >> I haven't been able to compile a .dll from the source. The ./configure >> script ignores --enable-shared parameters, so that isn't any help. >> >> I can see a '-shared' option in the i586-mingw32msvc-ld manpage which >> may be on the right track, but I'm unsure how to incorporate that into >> the build system (A standard autotools setup). >> >> Has anyone tried something similar? > > I'm not sure about any specific cross compiling requirements, but I > do know that when building a DLL on MinGW the linker needs to be passed > the "-no-undefined" option. No, it doesn't. If there are undefined references then it simply won't link. Maybe you are thinking of libtool or something? Luke > > If your project uses Automake you need something like: > > libyada-yada_la_LDFLAGS = -no-undefined > > HTH, > Erik > -- > +-----------------------------------------------------------+ > Erik de Castro Lopo no...@me... (Yes it's valid) > +-----------------------------------------------------------+ > C offers you enough rope to hang yourself. > C++ offers a fully equipped firing squad, a last cigarette and a > blindfold. > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > |