Skip to content

Add BUILD_MOSTLY_STATIC option (similar to what trexe has)

Misha Gusarov requested to merge misha/enable-static-link into master

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)

Merge request reports