8001875: build-infra: We must be able to force static linking of stdc++

Ensure that we build with static linking when requested, or do not build at all

Reviewed-by: ohair, tbell
2 files changed