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

--
Thomas Anders (thomas.anders at blue-cable.de)

-------------------------------------------------------------------------
This SF.net 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.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders