On Wed, Oct 6, 2010 at 7:43 AM, François Bissey
<f.r.bissey@massey.ac.nz> wrote:
> On 10/06/2010 03:01:35 AM, François Bissey wrote:
> >> On 10/05/2010 10:59:20 PM, François Bissey wrote:
> >>
> >> Interesting. Invoking
> >>
> >> LDFLAGS="-Wl,-01 -Wl,--sort-common -Wl,--as-needed" emerge -1v --nodeps
> >> maxima
> >>
> >> I get,
> >>
> >> 32bit chroot:
> >>
> >> ;;; Note:
> >> ;;; Invoking external command:
> >> ;;; i686-pc-linux-gnu-gcc -o
> >> "/var/tmp/portage/sci-mathematics/maxima-5.20.1-r3/work/maxima-5.20.1/sr
> >> c/b inary-ecl/maxima"
> >>
> >> ... a very long line ...
> >>
> >> "-Wl,-01 -Wl,--sort-common -Wl,--as-needed" -Wl,-O1 -lecl -lgmp -lgc
> >> -ldl -lm
> >> usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/ld
> >> : unrecognized option '-01 -Wl'
> >>
> >> ----------------------
> >> amd64:
> >> ;;; Note:
> >> ;;; Invoking external command:
> >> ;;; x86_64-pc-linux-gnu-gcc -o
> >> "/var/tmp/portage/sci-mathematics/maxima-5.20.1-r3/work/maxima-5.20.1/sr
> >> c/b inary-ecl/maxima"
> >>
> >> ... a very long line ...
> >>
> >> "-Wl,-01 -Wl,--sort-common -Wl,--as-needed" -Wl,-O1 -lecl -lgmp -lgc
> >> -lpthread -ldl -lm
> >> ;;;
> >> /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/b
> >> in/ ld: unrecognized option '-01 -Wl'
> >>
> >> So in both cases -Wl,-O1 is appended to the LDFLAGS passed to emerge.
> >
> > Actually, what does:
> > ecl-config --libs
> > ecl-config --ldflags
> > show? For you and Jean-Francis?
> > I suspect that the bad argument comes from there.
> >
> > Francois
>
> François,
>
> I have for
> ecl-config --ldflags && ecl-config --libs
>
> on 32bit
>
> -L/usr/lib/ -lecl -Wl,-O1 -ldl -lm
> -L/usr/lib/ -lecl -Wl,-O1 -ldl -lm
>
> and on amd64
>
> -L/usr/lib64/ -lecl -Wl,-O1 -lpthread -ldl -lm
> -L/usr/lib64/ -lecl -Wl,-O1 -lpthread -ldl -lm
>
I suppose you installed ecls before -Wl,--as-needed became standard.
Now why on my machine neither CFLAGS or LDFLAGS are picked by ecls
and the ecl portion of maxima?
Francois
Here is mine :
# ecl-config --ldflags && ecl-config --libs
-L/usr/lib64/ -lecl -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -ldl -lm
-L/usr/lib64/ -lecl -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -ldl -lm