Maurice Turcotte wrote:
I am configuring NET-SNMP to cross-compile for another
linux plaform using the uclibc toolchains. When I run
configure, it picks up the correct compiler, but it then
seems to be looking at the header files for the host
system rather than the cross-compiler.

For example, it looks for "stdio.h" in "/usr/include", which
is incorrect. It should be looking for "stdio.h" in "/opt/toolchains/uclibc/linux/include".


So, I have two questions......

1) How to I force configure to look for header files ONLY in a given directory.

Overriding the compiler should do it. I do this as follows: CC=/path/to/my/compler ./configure

(although recent autoconf doc deprecates that syntax
in favor of
   ./configure CC=/path/to/my/compler
I don't think the new syntax works with old configures)

If that's not working, something's wrong...
- Dan





Reply via email to