PDA

View Full Version : how to change path from /usr/include to /targets/SDK_ARMEL/usr/include for building?


kmkj
2007-06-28, 19:29
Hi. I am trying to build some C files inside Scratchbox, using a cross-
compilation toolchain. But the compiler is looking into /usr/include/ folder to
include the header files, whereas I need it to look into some other
path: /targets/SDK_ARMEL/usr/include. The build is failing because it
cannot find the right type of architecture as it is looking into wrong
directories when I run make. I am using SDK_ARMEL target as set up by the installating script, which uses cs2005q3.2-glibc-arm toolchain and arm-linux-gcc compiler I guess. Can you help me? I probalby need to change the default path for gcc from /usr/include to something else.
Thanks a lot
KM