Re: [code][textadept] NIGHTLY executables on Win32 are static

From: Gabriel Dubatti <gdubatti.att.gmail.com>
Date: Sun, 22 Apr 2018 08:11:29 -0300

Hi Mitchell,

El 22/04/18 a las 00:03, Mitchell escribió:
> Hi Gabriel,
>
> On Tue, 10 Apr 2018, Gabriel Dubatti wrote:
>
>> Hi Mitchell and Peter,
>>
>>
>> El 10/04/2018 a las 16:47, Mitchell escribió:
>>> Hi Peter,
>>>
>>> On Tue, 10 Apr 2018, Peter Rolf wrote:
>>>
>>>> Am 2018-04-10 um 20:05 schrieb Mitchell:
>>>>> Hi Peter,
>>>>>
>>>>> On Tue, 10 Apr 2018, Peter Rolf wrote:
>>>>>
>>>>>> Hi Mitchell,
>>>>>>
>>>>>> just cross compiled the source version from 07.04.18 and it works
>>>>>> fine
>>>>>> (textadept.exe, 1.8MB). I noticed that the Win32 NIGHTLY binaries
>>>>>> from
>>>>>> your site are still static. Sorry, didn't see it last time I
>>>>>> reported
>>>>>> back.
>>>>>
>>>>> What do you mean by static? I downloaded the latest Win32 nightly
>>>>> and it
>>>>> was for last night (9 April 2018).
>>>>>
>>>>
>>>> Static means, that all libraries are part of the executable (size of
>>>> textadept.exe is 16.9MB instead of 1.8MB). Currently you have the
>>>> libraries (*.dll) and four static executables (which don't need or use
>>>> the *.dll files).
>>>
>>> Oh, the nightlies actually are built with debugging symbols, which
>>> bloats
>>> up the size enormously, but can help with crash backtraces or
>>> user-initiated gdb sessions. The DLLs are not statically linked with
>>> the
>>> exes. (I just tried moving them and running Textadept; I got a "dll not
>>> found" type of error.)
>>>
>>> Cheers,
>>> Mitchell
>>
>> I have to add "libwinpthread-1.dll" when compiling for win32.
>
> I think these kinds of things depend on the toolchain installed and
> even its version. For example, my old mingw32 toolchain was based on
> gcc 4.2 and did not recognize the "-static-libstdc++" flag, while my
> newer toolchain based on mingw-w64 3.x and gcc 5.4 recognizes that
> flag and does not require the "libwinpthread.dll". Perhaps your
> toolchain is based on something more recent.
>
> Either way, this is good information for anyone else attempting to
> cross-compile for win32. Thanks for sharing.
>
> Cheers,
> Mitchell
>
>>
>> Cheers,
>> Gabriel
>>
>>
>
> Mitchell

According to this question in stack-overflow [1], "-static -lpthread"
can be added to gcc in new toolchains to force static compiling of
pthread. I never tried it, though.

Cheers,
Gabriel

[1]
https://stackoverflow.com/questions/13768515/how-to-do-static-linking-of-libwinpthread-1-dll-in-mingw

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Sun 22 Apr 2018 - 07:11:29 EDT

This archive was generated by hypermail 2.2.0 : Mon 23 Apr 2018 - 06:47:27 EDT