Cross compiling include path
Hi dear xenomai people,
sorry that I have so many question, but there is already another one... ;-)
I have seen that my output for cflags is as follows:
hico@debian:dimm-am335x:~/workspace/Xenomai/xenomai_from_git/staging_dir/usr/xenomai/bin$ xeno-config --skin=native --cflags -I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -D__XENO__
But it should be -I${staging_dir}/usr/xenomai/include as I guess for cross compilation.
Is it -I/usr... because I have made a mis-configuration in any step before? Of course, I can simply fix it by adapting my Makefile and add the right include directory, but I would like to prevent later problems as early as possible...
Kind regards
Quoted 11 lines · Peter
Hi dear xenomai people,
sorry that I have so many question, but there is already another one... ;-)
I have seen that my output for cflags is as follows:
hico@debian:dimm-am335x:~/workspace/Xenomai/xenomai_from_git/staging_dir/usr/xenomai/bin$ xeno-config --skin=native --cflags -I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -D__XENO__But it should be -I${staging_dir}/usr/xenomai/include as I guess for cross compilation.
Is it -I/usr... because I have made a mis-configuration in any step before? Of course, I can simply fix it by adapting myMakefileand add the right include directory, but I would like to prevent later problems as early as possible...
See:
http://www.xenomai.org/index.php/Porting_POSIX_applications_to_Xenomai#Compilation_flags
The example is for the posix skin.
Signature · 1 line
Gilles.