build.sh - Adding an option "static" that would build the native lib statically
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 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, 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
IMHO, using 'static' often assumes that everything is 'static'. To avoid confusion I would suggest to use something like 'static_libicu' , 'static_libcurl', ...
@mkborg, good point. I like your suggestion.
cc @ellismg
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.
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.