Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 134063

Summary: sci-libs/gsl --as-needed fix
Product: Gentoo Linux Reporter: Francesco R. (RETIRED) <vivo>
Component: [OLD] LibraryAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal CC: flameeyes, tove
Priority: Lowest    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://download.opensuse.org/distribution/SL-10.1/inst-source/suse/src/gsl-1.7-14.src.rpm
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 129413    
Attachments: suse-gsl-1.6-deps.diff
gsl-1.8-r1.patch

Description Francesco R. (RETIRED) gentoo-dev 2006-05-22 14:42:48 UTC
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
Comment 1 Francesco R. (RETIRED) gentoo-dev 2006-05-22 14:44:17 UTC
Created attachment 87280 [details, diff]
suse-gsl-1.6-deps.diff
Comment 2 Francesco R. (RETIRED) gentoo-dev 2006-05-22 14:44:52 UTC
Created attachment 87281 [details, diff]
gsl-1.8-r1.patch
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2006-06-16 18:34:55 UTC
Fixed, thanks! Please be sure to submit this patch upstream as well.