-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03.04.2014 18:23, Koehne Kai wrote:
> On 03.04.2014 LRN wrote:
>> On 03.04.2014 14:42, Koehne Kai wrote:
>>> Hi,
>>> 
>>> Anyone knows by heart what to check for in a PE header to
>>> decide whether a dll is a debug build, or not?
>>> 
>>> Background: Qt has a neat tool to package all of the Qt/non qt 
>>> dependencies together for deployment: windeployqt. To function 
>>> properly, it has to decide whether an executable/dll is a debug
>>> build, or not ...
>> 
>> Why does it need to know whether a binary is a debug build or
>> not?
> 
> Because in the Qt packages we go the 'MSVC way' in Qt and offer
> both a full debug build and a release build of our libraries side
> by side.
> 
> You don't really want to package all of them by default though (the
> gcc debug binaries can be obscenely large). So given a binary, I
> need a hint what type of build it is.
> 
>> Also, define "debug build"? -g? -O0? -DDEBUG=1?
> 
> Well, in the MSVC world it's easy: A debug build is s.th. that
> depends on debug version of the MSVC runtime :) For my use case, I
> think actually any of the above would be 'good enough'.
> 
> (Btw, what I'd _love_ to do actually is having a setup like it's
> common on Linux, where you've one set of libs/binaries, but
> stripped debug information besides. Never managed to get this
> working with MinGW though ... Anyone has experience with such a
> setup ?)

Separate debug info totally works with MinGW. See [1] for a fancy
script that does this (it's well-commented, so you can use it as a
documentation, if you don't want the script itself).

[1]
https://www.gitorious.org/sbuild/sbuild/source/master:mingw/bin/split-debug.py


- -- 
O< ascii ribbon - stop html email! - www.asciiribbon.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)

iQEcBAEBAgAGBQJTPX4sAAoJEOs4Jb6SI2CwvBAH/iTxJq9ouDtOjDkQoewi/OeE
gFkiAg3kocVfvXYRzZ8BSHWB5wVss73zlL9mFxrBzxV8udj0EU0GBUEPVak3pRlM
HlCORxF2GU/IaAOY7OCFPrY4UCiib1F1EUzkVfRP2qo0fnhxakHXx9YQa9suYqKs
uezBINqa+t2V+cPa5L6sMgjeH8fLjvvVe36YnjQv+9yZ/t85Uz7scU7CWFIFcQe/
uhpB5R9B/G8ntTKrPT7YF5pWNzqDmCV5V6DebD67fp3iq8rfLO2ToJbhD8M/tDMR
6dX4jA6I+AuhmUYvUgND1375Vu5vcjw3drVUbGBfuwSuc3wIRjR4mFY6sTwYL6k=
=5Hur
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to