I'm reporting this bug because the package in summary fails to build when forcing --as-needed on through spec files (check out http://blog.flameeyes.eu/2008/11/14/problems-and-mitigation-strategies-for-as-needed for details). Please note that this bug _might_ apply to -Wl,--as-needed in LDFLAGS as well; in both cases it should be fixed. Also, if this is due to the package in question not respecting user-defined LDFLAGS, you should get to fix that too. Check the attached build log. Thanks, Diego
Created attachment 227107 [details] Build log
This one is tricky. It's rather problem with libtool. The linking call: /bin/sh ../libtool --tag=CXX --mode=link x86_64-pc-linux-gnu-g++ -fopenmp -O2 -pipe -Wall -fopenmp -Wl,--as-needed,--hash-style=gnu,-O1 -o libMinuit2.la -rpath /usr/lib64 *.lo results in: x86_64-pc-linux-gnu-g++ -shared -nostdlib *.o (some -L and -l) -Wl,--as-needed -Wl,--hash-style=gnu -Wl,-O1 -Wl,-soname -Wl,libMinuit2.so.0 -o .libs/libMinuit2.so.0.0.0 The flag that's missing is -fopenmp and according to GCC manual it _should_ be present during linking, as it brings required libs...
*** Bug 300672 has been marked as a duplicate of this bug. ***
Should work now: + 02 Jun 2010; Kacper Kowalik <xarthisius@gentoo.org> minuit-5.27.02.ebuild, + +files/minuit-5.27.02-asneeded.patch: + Adding workaround for bug 314095 though be advised that it's not properly fixed. Leaving this bug open.
+ 01 Jul 2010; Samuli Suominen <ssuominen@gentoo.org> + files/minuit-5.27.02-asneeded.patch: + Update -Wl,--as-needed patch with OpenMP library finding code from + ImageMagick's configure.ac wrt #314095.