Cleanup compilation of static binaries
Context
We no longer use the env stanza because its scope is too wide. We want precise control of what binaries should be compiled in static mode.
Also remove ~static_cclibs from the manifest as it's unused and it allows to simplify the manifest quite a bit.
External dune PR https://github.com/ocaml/dune/pull/5215
Based on !3976 (merged) and !3958 (merged)
Dune 3 will allow us make static compilation of binary much less invasive in dune files
Manually testing the MR
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment, theDevelopment Versionsection ofCHANGES.mdfor everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by Hugo Heuzard