1 |
On 10/06/10 - 06:43:09, François Bissey wrote: |
2 |
> > > Actually, what does: |
3 |
> > > ecl-config --libs |
4 |
> > > ecl-config --ldflags |
5 |
> > > show? For you and Jean-Francis? |
6 |
> > > I suspect that the bad argument comes from there. |
7 |
> > > |
8 |
> > > Francois |
9 |
> > |
10 |
> > François, |
11 |
> > |
12 |
> > I have for |
13 |
> > ecl-config --ldflags && ecl-config --libs |
14 |
> > |
15 |
> > on 32bit |
16 |
> > |
17 |
> > -L/usr/lib/ -lecl -Wl,-O1 -ldl -lm |
18 |
> > -L/usr/lib/ -lecl -Wl,-O1 -ldl -lm |
19 |
> > |
20 |
> > and on amd64 |
21 |
> > |
22 |
> > -L/usr/lib64/ -lecl -Wl,-O1 -lpthread -ldl -lm |
23 |
> > -L/usr/lib64/ -lecl -Wl,-O1 -lpthread -ldl -lm |
24 |
> > |
25 |
> I suppose you installed ecls before -Wl,--as-needed became standard. |
26 |
> Now why on my machine neither CFLAGS or LDFLAGS are picked by ecls |
27 |
> and the ecl portion of maxima? |
28 |
> |
29 |
> Francois |
30 |
> |
31 |
Well perhaps the ecls issue is resolved here. I rebuilt both ecls and |
32 |
maxima to use the default profile ldflags (LDFLAGS="-Wl,-O1 |
33 |
-Wl,--as-needed") and |
34 |
|
35 |
ecl-config --ldflags gives |
36 |
-L/usr/lib64/ -lecl -Wl,-O1 -Wl,--as-needed -lpthread -ldl -lm |
37 |
|
38 |
ecls can now be configured and built with something like |
39 |
|
40 |
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common" emerge -1v --nodeps |
41 |
ecls |
42 |
|
43 |
However, no luck with maxima. The above with ecls replaced with maxima |
44 |
now gives |
45 |
|
46 |
|
47 |
\"/var/tmp/portage/sci-mathematics/maxima-5.20.1-r3/work/maxima-5.20.1/src/binary-ecl/init-cl.o\" |
48 |
\"-Wl,-O1 -Wl,--as-needed -Wl,--sort-common\" -Wl,-O1 |
49 |
-Wl,--as-needed -lecl -lgmp -lgc -lpthread -ldl -lm ") |
50 |
|
51 |
;;; |
52 |
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: |
53 |
unrecognized option '--as-needed -Wl' |
54 |
|
55 |
Steve |