[Box Backup] Remove dependencies on mgwz.dll, mingwm10.dll and shrink resulting .exe

Achim boxbackup at boxbackup.org
Tue Mar 31 10:26:48 BST 2009


Hello Chris:

On Mon, 30 Mar 2009 22:14:17 +0200 (CEST), Chris Wilson <chris at qwirx.com>
wrote:
> Yes, I haven't done anything about that yet, lack of time.

No problem, just wanted to make that comment for the record, R2465 works
perfectly fine for now.

>> * * * Remove dependency on mingwm10.dll * * *
>> "-mthreads" is needed for thread-safe exception handling. I am not sure
>> whether Box uses threading and exceptions
> 
> We absolutely do. The code crashed randomly and behaved very weirdly
under 
> debugging until I found out that I needed to use -mthreads.

OK.

>> but for now I assume that we can safly remove this flag on a 
>> MinGW32-System:
> 
> Not as far as I am aware.

Wrong hypothesis then (-: Do you agree however that we can change
infrastructure/mingw/configure.sh to include
"--enable-static-bin" to eliminate the dependency on mgwz.dll? Do you need
any other information for this change request?

> I don't wish to distribute UPXed binaries. You are welcome to do so if
you 
> wish. I recommend that you also strip out debugging information, which I 
> do not, because it's useful in debugging.

Sorry for being imprecise: the UPX step was rather intended to give other
people on this list an interesting idea that I only stumbled upon by
chance, not as part of the official build process. Stripping is also a good
suggestion. 

Would it perhaps be possible to have stripping included in the Makefile,
perhaps by introducing the targets make-release and make-debug, with the
default make pointing to make-debug, and make-release doing the stripping
of resulting binaries automatically after linking?

Best regards, Achim



More information about the Boxbackup mailing list