runtime icon indicating copy to clipboard operation
runtime copied to clipboard

build.sh - Adding an option "static" that would build the native lib statically

Open davzucky opened this issue 10 years ago • 7 comments

The idea of this flag is that it will allow to build the library statically so that the dotnetcli bootstrapping package use to build coreclr and corefx would only contain statically linked native library. This will help on a lot on issue that poeples are facing because of the lib version difference (mainly icu and curl) The param name : static ./build.sh static

davzucky avatar Apr 20 '16 04:04 davzucky

@davzucky Which native library are you referring to? We build multiple native dynamic libraries - libcoreclr.so, System.Globalization.Native.so, libsos.so, libsosplugin.so, libmscordaccore.so, etc.

janvorli avatar Apr 20 '16 05:04 janvorli

@janvorli, The library which are causing problem from the bootstrapping package of dotnetcli which we download are :

  • System.Globalization.native.so from coreclr : dynamically linked to libicu 52 of the build system
  • System.Net.Http.Native.so from corefx : require an old libcrub package.

The idea for this flag is that it will allow to statically link for each of this native lib libicu and libcrub. Statically linked everythink is maybe too extrem at that point, however having at least that ones, would allow resend version of ubuntu (or other distribution ) to build coreclr and corefx. If you can think at other external dependency that we should be able to statically we can add them as well

davzucky avatar Apr 20 '16 05:04 davzucky

IMHO, using 'static' often assumes that everything is 'static'. To avoid confusion I would suggest to use something like 'static_libicu' , 'static_libcurl', ...

mkborg avatar Apr 20 '16 07:04 mkborg

@mkborg, good point. I like your suggestion.

davzucky avatar Apr 20 '16 13:04 davzucky

cc @ellismg

jkotas avatar Apr 22 '16 18:04 jkotas

Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process.

This process is part of the experimental issue cleanup initiative we are currently trialing. Please share any feedback you might have in the linked issue.

ghost avatar Feb 22 '22 18:02 ghost

This issue will now be closed since it had been marked no-recent-activity but received no further activity in the past 14 days. It is still possible to reopen or comment on the issue, but please note that the issue will be locked if it remains inactive for another 30 days.

ghost avatar Mar 09 '22 00:03 ghost