Fix #6856 Make --lib
warning louder and clearer
#6857
Merged
--lib
warning louder and clearer
#6857