sci-libs/gsl fail to build with --as-needed ld flag, the attached patches have been extracted from a suse src rpm and works for me. The patch should work also with previous versions of the library w/o changes. One side note, the rpm specs contain: ------------------------ %ifarch i386 x86_64 # We could add -msse2 -mpfmath=sse here ... CFLAGS="$RPM_OPT_FLAGS -O3 -finline-limit=720 --param max-inline-insns-auto=160 -ffast-math -funroll-loops -fno-strict-aliasing -momit-leaf-frame-pointer -funit-at-a-time -ftree-vectorize" ./configure --enable-shared --with-gnu-ld \ --prefix=/usr --mandir=%{_mandir} --infodir=%{_infodir} --libdir=%{_libdir} %else CFLAGS="$RPM_OPT_FLAGS -O3 -finline-limit=720 --param max-inline-insns-auto=160 -funroll-loops -fno-strict-aliasing -funit-at-a-time -ftree-vectorize" ./configure --enable-shared --with-gnu-ld \ --prefix=/usr --mandir=%{_mandir} --infodir=%{_infodir} --libdir=%{_libdir} %endif ------------------------ so maybe it's now possible to remove the filtering of richer CFLAGS (untested here). rgds, Francesco
Created attachment 87280 [details, diff] suse-gsl-1.6-deps.diff
Created attachment 87281 [details, diff] gsl-1.8-r1.patch
Fixed, thanks! Please be sure to submit this patch upstream as well.