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

Bug#956146: lintian: check for rules enabling --as-needed



tags 956146 + moreinfo
thanks

Andreas,

> if I understood correctly, the bullseye toolchain defaults to linking
> with --as-needed. Therefore it should no longer be neccessary to inject
> -Wl,--as-needed into the build process, allowing d/rules to be further
> minimized.
> 
> Some common ways of adding --as-needed that I found in the (possibly
> ancient) rules files on my local hard disk:

Thanks for this example. We can actually use codesearch to get a crude
idea of the prevalence of this:

  https://codesearch.debian.net/search?q=path%3Adebian%2Frules+%5C-Wl%2C%5C-%5C-as-needed&literal=0

Any input on whether a brute grep for "-Wl,--as-needed" in debian/
rules would be sufficient to catch most instances of these? (Feel free
to drop moreinfo tag upon replying.)


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org 🍥 chris-lamb.co.uk
       `-


Reply to: