On Thu Jul 23, 2015 at 10:12:51PM +0300, Vadim Zhukov wrote: > Hello all. > > Not sure who cares about libraw now, so sending this to ports@. > > The problem is that libraw explicitly adds -lstdc++ to the Libs > section in pkg-config files. As a result, when some software that > links to -lestdc++ tries to link -lraw or -lraw_r, it could get > -lstdc++ earlier that -lestdc++ in linker command line, > effectively making ld.so pick up symbols from -lstdc++ whenever > possible. And that's really bad. I see two options: > > 1. Make affected ports (depending on libraw) filter out -lstdc++. > CMake-based one, libkdcraw, don't care about pkg-config --libs > and thus isn't affected already. > > 2. Patch out libraw pkg-config templates. This is what the current > patch does. Not sure if this patch could be considered for upstream, > as there could be platforms where explicit -lstdc++ is needed; I'm > not an expert here. > > Personally I'd go with (2), this will make incoming nomacs port > easier. Thoughts? Okays? >
Do you test your patch with nomacs? I built nomacs with the same patch last day but nomacs is still linking with bas stdc++.
