mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] MXE: How to build a self-sufficient DLL that


From: Volker Grabsch
Subject: Re: [Mingw-cross-env-list] MXE: How to build a self-sufficient DLL that statically includes other libraries?
Date: Fri, 27 Mar 2015 12:10:38 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

Dear Matthias,

Matthias Geier schrieb:
> Static libraries can be converted to DLLs with gcc (which in turn
> calls ld) using the -shared flag. Without this flag, gcc would try to
> make an .exe file, which wouldn't work because there is no main
> function (and besides, I don't want an .exe file anyway).
> 
> The essential part, which took me quite a while to find out, is to use
> the option -Wl,--whole-archive;

That's really a great solution!  Kudos for finding that out.


Regards,
Volker

-- 
Volker Grabsch
---<<(())>>---



reply via email to

[Prev in Thread] Current Thread [Next in Thread]