On Sun, 06 Nov 2011 17:56:40 +0200, VS (Ville) wrote: > > Puzzles me. The F-16 build doesn't depend on libpng* directly: > > > > $ rpm -qR geeqie|grep png > > $ rpm -q geeqie > > geeqie-1.0-13.fc16.x86_64 > > I noticed a similar thing with gkrellm-volume -- the F-15 build did have > a dependency on it, but the F-16 one didn't (libm was similarly gone, > maybe some others too). I suppose some pkg-config files of the build > dependency chain no longer had those in pkg-config --libs output on F-16 > but did on F-15. At least -lpng12 is gone in several build logs. > Anyway, applying -Wl,--as-needed on a new Rawhide gkrellm-volume build > still got rid of quite a few additional unnecessary deps even though it > would no longer have been necessary in order to get rid of the libpng one. Two findings after I tested a bit on Sunday: * Some programs insert LDFLAGS after LIBS. This works for appending libraries from within the spec file (such as -lm), but linker options like --as-needed only affect libraries following it. * The %configure macro (at least since F-16) does LDFLAGS="${LDFLAGS:--Wl,-z,relro }"; export LDFLAGS; so one cannot simply export a customized $LDFLAGS in the spec file without disturbing the macro. -- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/devel