> Hey, what do I know!
> 
> On x86 maxima doesn't respect LDFLAGS! And I remember talking with David
> Kirby on sage-devel that actually ecls doesn't either.
> But from the logs from JF, on amd64 the LDFLAGS are duplicated and the
> problem is that in the failing call one of them is still in double quotes
> which I think is the problem.

Just a bit more details on this. From JF's log:
;;; 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/src/binary-ecl/init-cl.fas" -
L"/usr/lib64/" "/var/tmp/portage/sci-mathematics/maxima-5.20.1-
r3/temp/ECLINITcTeFmu.o" "/var/tmp/portage/sci-mathematics/maxima-5.20.1-
r3/work/maxima-5.20.1/src/binary-ecl/init-cl.o"   -shared -Wl,-O1 -Wl,--sort-
common -Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,--as-needed  -lecl  -lgmp 
-lgc -ldl  -lm 
;;; 

but the failing call ends with:

"/var/tmp/portage/sci-mathematics/maxima-5.20.1-
r3/work/maxima-5.20.1/src/binary-ecl/init-cl.o" "-Wl,-O1 -Wl,--sort-common -
Wl,--as-needed"   -Wl,-O1 -Wl,--sort-common -Wl,--as-needed  -lecl  -lgmp -lgc 
-ldl  -lm 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: 
unrecognized option '--sort-common -Wl'

-------------------
in contrast on my x86 system:
;;; 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/src/binary-ecl/init-cl.fas" -
L"/usr/lib/" "/var/tmp/portage/sci-mathematics/maxima-5.20.1-
r3/temp/ECLINITL4BVJx.o" "/var/tmp/portage/sci-mathematics/maxima-5.20.1-
r3/work/maxima-5.20.1/src/binary-ecl/init-cl.o"   -shared    -lecl  -lgmp -lgc 
-ldl  -lm 

No LDFLAGS in the call where JF's build fail either.

Francois

Reply via email to