Search code examples
gcccross-compiling

gcc cross compiler is using the wrong assembler


When I run:

/opt/local/bin/arm-elf-gcc-4.7 test.c -o test

gcc decides to use as -o test.o test.s instead of the cross compiler's assembler. How do I specify the correct assembler to use?


Solution

  • Use -B PREFIX to set the correct assembler.