Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134063 - sci-libs/gsl --as-needed fix
Summary: sci-libs/gsl --as-needed fix
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Lowest normal (vote)
Assignee: Gentoo Science Related Packages
Depends on:
Blocks: as-needed
  Show dependency tree
Reported: 2006-05-22 14:42 UTC by Francesco R. (RETIRED)
Modified: 2006-06-16 18:34 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

suse-gsl-1.6-deps.diff (suse-gsl-1.6-deps.diff,418 bytes, patch)
2006-05-22 14:44 UTC, Francesco R. (RETIRED)
Details | Diff
gsl-1.8-r1.patch (gsl-1.8-r1.patch,680 bytes, patch)
2006-05-22 14:44 UTC, Francesco R. (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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}
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}

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]
Comment 2 Francesco R. (RETIRED) gentoo-dev 2006-05-22 14:44:52 UTC
Created attachment 87281 [details, diff]
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.