Am Mittwoch, 17. November 2010, 11:10:49 schrieb Pertti Kellomäki:
> I was trying to build a new version of the meegotouch-applauncherd
> package, and ran into this:
> 
> /usr/bin/c++ -O3 -static CMakeFiles/fala_gettime.dir/fala_gettime.cpp.o
> -o fala_gettime
> /usr/bin/ld: cannot find -lm
> collect2: ld returned 1 exit status|
> 
> The binary it is trying to build is a simple time stamping program which
> we want to start up as quickly as possible, hence the static linking.
> 
> I presume the error is caused by missing libm.a. I don't have a recent
> MeeGo image handy, but at least in the pre-1.1 image I do have there was
> no such file. Is there some package that provides it?
> 
> A related issue is that I do not explicitly give -lm, it is implicitly
> given by /usr/bin/c++. It seems to me that the package providing c++
> should depend on the package providing libm.a.

Static linking is not the preferred way. We don't ship the static libs of most 
packages.
-->
Use dynamic linking and prelink or cross-prelink .

Best,
Jan-SImon

_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev

Reply via email to