On 10/06/10 - 06:43:09, François Bissey wrote: > > > 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 > Well perhaps the ecls issue is resolved here. I rebuilt both ecls and maxima to use the default profile ldflags (LDFLAGS="-Wl,-O1 -Wl,--as-needed") and ecl-config --ldflags gives -L/usr/lib64/ -lecl -Wl,-O1 -Wl,--as-needed -lpthread -ldl -lm ecls can now be configured and built with something like LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common" emerge -1v --nodeps ecls However, no luck with maxima. The above with ecls replaced with maxima now gives \"/var/tmp/portage/sci-mathematics/maxima-5.20.1-r3/work/maxima-5.20.1/src/binary-ecl/init-cl.o\" \"-Wl,-O1 -Wl,--as-needed -Wl,--sort-common\" -Wl,-O1 -Wl,--as-needed -lecl -lgmp -lgc -lpthread -ldl -lm ") ;;; /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: unrecognized option '--as-needed -Wl' Steve