Need Help wrote:
> I am trying to compile the NetSNMP package into my build environment,
> however, I discovered I am using the wrong compiler. Our compiler is
> accessed by using the "$(CC)" environment variable. As a result, I am
> using the following the "./configure" options, but it seems it is using
> the "cc" compiler and not our specific compiler.
> --with-cc=$(CC)
> --with-linkcc=$(CC)
> --with-cflags=$(CFLAGS)
> --with-ldflags=$(LDFLAGS)

Setting CC, CFLAGS and/or LDFLAGS *environment* variables is enough.
There's no need to feed them to configure using --with-cc etc.

For example,

env CC=gcc ./configure ...

will cause configure to use the gcc compiler.


Thomas Anders (thomas.anders at

This email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
Net-snmp-coders mailing list