Cannot determine link language for target

These are typically compile flags, not link flags. Do things work better if you comment this out?