View Single Post
pichlo's Avatar
Posts: 6,453 | Thanked: 20,983 times | Joined on Sep 2012 @ UK
#19
Originally Posted by szopin View Post
Make results in a lot of assembler errors though (Error: selected processor does not support ARM mode `ldrex r2,[r3]`). Turning off optimizations helps a bit, down to 4 errors from a few hundred. Not sure if this will help in all cases, but adding:
Code:
-march=armv7-a -marm -mfloat-abi=softfp
to CFLAGS resulted in a successful compile. Binary works.
I've been doing a bit of development on my N900 lately and in my experience, in all the cases I've tried so far the -mfloat option was not necessary. So optimization should still work, all we need to do is specify the architecture. This s using gcc 4.6.1 from extras-devel.

Now to compile qtcreator...
Any news on that one?
__________________
Русский военный корабль, иди нахуй!
 

The Following 2 Users Say Thank You to pichlo For This Useful Post: