How to prevent cross-gcc from adding dependency flags ? [message #1735320] |
Fri, 17 June 2016 11:11 |
Timothee Fivaz Messages: 5 Registered: June 2016 |
Junior Member |
|
|
Hello,
I am trying to configure the build settings of a cross-gcc compiler for a project and I'm a bit surprised to see some dependency flags that I didn't manually specify in the compile command.
After setting all the options I want, here is what my "All options" field (Project properties, C/C++ Build, Settings, Cross GCC compiler, Tool Settings) looks like :
-I"C:\workspace\project\src" -O1 --gdwarf2 -Wall
And when I build the project here is the command called by eclipse :
xxx-gcc -I"C:\workspace\project\src" -O1 --gdwarf2 -Wall -MMD -MP -MF"src/srcFile.d" -MT"src/srcFile.o" -o "src/srcFile.o" "../src/srcFile.c"
(Note : xxx represents my toolchain prefix)
My problem is that the toolchain I use doesn't implement the -MP, -MT and -MF flags, and gcc returns an error "fatal error: too many input files". It's a custom toolchain for a custom architecture and the toolchain is maintained by another company.
Is there a way to prevent the build manager to add these flags and to replace them by the dependency flag(s) that suit me ?
The only working solution I've come with is to use an external Makefile where I define the whole command with only the -MMD flag for dependencies, but I guess there is a way to do that directly into eclipse.
I am running eclipse Mars 4.5.2 and CDT 8.8.1.
[Updated on: Fri, 17 June 2016 11:15] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01696 seconds