In lld, a symbol version with undefined symbol is rejected by default. In previous CMake, we use a wildcard for all symbol, which is fine for empty program. Add --undefined-version to the detection to fix it.