is not possible due to a less free component (like a code library), the source code adopts the license of the library by default."
Adopting the license of the library by default makes not much sense. A free license that allows linking unfree libraries would be the way to go.