- precompute lib* conditions to avoid code duplication