Add BUILD_MOSTLY_STATIC option (similar to what trexe has)
Before raising this MR, consider whether the following are required, and complete if so:
Build change.
Description
trexe
has BUILD_STATIC
option that changes the build to prefer static libraries. As trexe
is now merge into buildbox-common
, add the option here too. It's not full BUILD_STATIC
, because it will happly fall back to shared libraries if static are not found, and libc is not always linked statically, so BUILD_MOSTLY_STATIC
is more precise.
Validation
-DBUILD_STATIC=ON
should start preferring .a
over .so
.
Issues addressed
Related to #92 (closed)