tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Wrappers dropping gcc/clang -w



Am 17.07.2026 um 16:31 schrieb Jonathan Perkin:
> Back in 2007 Roland added this to the legacy shell wrappers:
> 
>    # There are some packages suppressing all warnings. We don't want that.
>    -w                     ) transform_discard ;;
> 
> [...]
> 
> I'd be interested in others thoughts here.  I intensely dislike magic, 
> and this feels very much like us poking our nose in where it doesn't 
> belong, or should at least be some mk.conf option to enable extra 
> BUILDLINK_TRANSFORM for people who want to do builds that enforce 
> stricter environments than the software they are building do themselves.

While it has worked in the past 19 years, I agree. It might be good to
loudly warn about such cases instead of discarding -w silently. Or, as
you suggest, just passing it through unmodified.

I don't remember the "some packages" that used that compiler option back
then. So sure, give it a try.

Roland



Home | Main Index | Thread Index | Old Index