KUL-RSDA / AquaCrop

AquaCrop source code endorsed by FAO
https://www.fao.org/aquacrop/en/
Other
54 stars 17 forks source link

Support static binary builds #304

Closed MaximeVdB closed 2 years ago

MaximeVdB commented 2 years ago

By default, our binaries (executable and (shared) library) are dynamically linked to e.g. the libgfortran runtime library. This PR adds the option for static builds (with the STATIC=1 make option). So these are self-contained binaries which can then be released as precompiled standalone versions (at least the aquacrop executable; there is probably less interest in releasing a libaquacrop.a static library).

Performed tests:

gdelannoy commented 2 years ago

The windows executable takes 12 sec and that seems very reasonable to me for the testcase. I need to say that I have no idea how much the official windows executable (only available one is v6, we can ask Dirk for v7) would take for the same task.