On Fri, Nov 03, 2023 at 10:47:11AM +0000, Daniel P. Berrangé wrote:
> On Fri, Nov 03, 2023 at 10:41:51AM +0000, Daniel P. Berrangé wrote:
> > On Fri, Nov 03, 2023 at 03:19:17AM -0700, Andrea Bolognani wrote:
> > > ld: warning: ignoring duplicate libraries: '-lxml2'
> >
> > There's a similarish warning reported against homebew
> >
> >
https://github.com/orgs/Homebrew/discussions/4794
>
> Actually I think it is more mundane and a stupid warning:
>
> % gcc c.c -lxml2
>
> % gcc c.c -lxml2 -lxml2
> ld: warning: ignoring duplicate libraries: '-lxml2'
>
> oooooh soo many projects have the same -lXXX repeated mamy times when
> building, as build systems don't make it easy to merge duplicates.
> Warning about this is madness :-(
Yeah I really don't see the point, seems like it's there just to be
annoying :(
We can turn it off with:
-Wl,-no_warn_duplicate_libraries
but need to probe for whether that option exists or not.