I’m trying to make a package in debian (squeeze, armel). Problem is, my GCC seems to have set -msse2 which is unsupported on ARM, and I have no idea how to disable it. How can I change GCC’s default flags to disable this? Thanks.
Full error:
Building CXX object frameworks/CoreLib/CMakeFiles/.....cpp.o
cc1plus: error: unrecognized command line option "-msse2"
make[2] \*\*\* [fframeworks/CoreLib/CMakeFiles/.....cpp.o] Error 1
make[1] \*\*\* [frameworks/CoreLib/CMakeFiles/.....dir/all] Error 2
make \*\*\* [all] Error 2
thing is, none of the files mention have -msse2 in them, anywhere, which is why I think the compiler might be to blame.
MMX, SSE an SSE2 are Intel/AMD specific extensions that are not supported on ARM, ARM has it’s own NEON SIMD extensions. It seems to me like you’re trying to cross-compile a program for ARM and using the native toochain, for that you will need a toolchain for the target platform. Here’s a tutorial on how to install an ARM toolchain that might help
Edit: now that I see the error, the Makefile is passing
-msse2to gcc, you should read the instructions for compiling that package to ARM see if that is even possible.