IcedTea-Web: Building a portable rust-launcher on windows
Jiri Vanek
jvanek at redhat.com
Tue Apr 9 10:03:37 UTC 2019
On 4/9/19 7:26 AM, Christian Svedin wrote:
> If someone else is having the same problem, here is how i solved it:
> I got an executable statically linked against the runtime by adding to to my .cargo/config file
>
> [target.x86_64-pc-windows-msvc]
> rustflags = ["-C", "target-feature=+crt-static"]
Thank you very much for the info.
>
> On Wed, 2019-04-03 at 14:45 +0200, Jiri Vanek wrote:
>> On 4/3/19 2:36 PM, Christian Svedin wrote:
>> I have built icedtea-web locally on windows from the icedtea-web-1.8-branchpoint tag.
>> I get a rust-launcher that's 370 kB big, compared to the one in the msi package for your 1.8 release
>> which is about 10 times bigger.
>>
>> My guess is that mine is dynamically linked and yours is statically linked. On some machines I get
>> errors about missing vcruntime-libraries.
>>
>> Likely. Up to now, I thought rust is not (currently) capable of dynamic linking.
>>
>> Are there any flags I should use when building, or do I need to install anything to get statically
>> linked .exe files?
>>
>> Nothoing I know about. On both win and linux I run just cargo build. See makefiles.
>> Maybe I should use another version of the rust compiler or cargo? I have rustc version 1.31.1 and
>> cargo version 1.31.0
>>
>>
>>
>> --
>>
>> Ida Infront
>>
>> Christian Svedin
>> Systemutvecklare
>>
>> Ida Infront AB | Box 576 | SE-581 07 Linköping | Sweden
>> mobile 0702 09 22 40 | direct 013 37 37 47
>> e-mail christian.svedin at idainfront.se <mailto:christian.svedin at idainfront.se> | web www.idainfront.se <http://www.idainfront.se>
>>
>>
>>
>>
> --
>
> Ida Infront
>
> Christian Svedin
> Systemutvecklare
>
> Ida Infront AB | Box 576 | SE-581 07 Linköping | Sweden
> mobile 0702 09 22 40 | direct 013 37 37 47
> e-mail christian.svedin at idainfront.se | web www.idainfront.se
>
--
Jiri Vanek
Senior QE engineer, OpenJDK QE lead, Mgr.
Red Hat Czech
jvanek at redhat.com M: +420775390109
More information about the distro-pkg-dev
mailing list