[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sile of libm.so.6 ,Etrax 100LX Linux 2.4.x



> From: "Stefan Koch" <stefan.koch@xxxxxxx.ch>
> Date: Fri, 25 Jan 2002 18:07:11 -0000

> I have been able to compile and run tcl on the etrax board :-).

Nice.  Any tweaks needed?

> Tcl requires
> some libs to be available as libm.so.6. Since the lib file is > than 1.2MB I
> can not squeze it onto the 2MB flash. Is there a way to optimize the size of
> libs with cris-gcc?

Link libm statically: when you link tcl, instead of "-lm", put
"-Wl,-Bstatic,-lm,-Bdynamic".

brgds, H-P