Cross Compil for LynxOS 3.1.0
Hello,
I created a simple test "Hello World" to illustrate my words. This test compiles an executable "hello_world" using:
- CMake/Makefile
- CMake/Ninja I use for this test CMake V3.9.6 and Ninja V1.8.2
Makefile
[ 50%] Building C object CMakeFiles/hello_world.dir/main.c.o /usr/bin/cc -g -Wall -Wextra -o CMakeFiles/hello_world.dir/main.c.o -c /home/to104437/dev/ninja/src/main.c [100%] Linking C executable hello_world /home/ioland/REF/COTS/CMAKE/V3.9.6/BINARIES/Linux/bin/cmake -E cmake_link_script CMakeFiles/hello_world.dir/link.txt --verbose=1 /usr/bin/cc -g -Wall -Wextra -rdynamic CMakeFiles/hello_world.dir/main.c.o -o hello_world
Ninja
[1/3] /usr/bin/cc -g -Wall -Wextra -MD -MT CMakeFiles/hello_world.dir/main.c.o -MF CMakeFiles/hello_world.dir/main.c.o.d -o CMakeFiles/hello_world.dir/main.c.o -c /home/to104437/dev/ninja/src/main.c [2/3] : && /usr/bin/cc -g -Wall -Wextra -rdynamic CMakeFiles/hello_world.dir/main.c.o -o hello_world && : [2/3] cd /home/to104437/dev/ninja/builds/Ninja && /home/ioland/REF/COTS/CMAKE/V3.9.6/BINARIES/Linux/bin/cmake -P cmake_install.cmake
In this very simple example we can see that Ninja adds additional options to the gcc compilation line. I try to integrate ninja V1.8.2 in my project which has, as target Linux, Windows & LynxOS. However for the LynxOS cross-compil, the compilation is in failure..
Is it possible to configure CMake/Ninja to avoid this addition?