On 16 June 2010 22:56, Kavita Raghunathan
kavita.raghunat...@skyfiber.com wrote:
Please note that I am using net-snmp-5.5, and the with-ld option is not
supported
$ ./configure --help
Compiler Options:
--with-cc=CCuse CC to compile (default=gcc).
--with-linkcc=CC
Hello,
How do I specify the right ld for the build to work ? I’m using linux and while
linking with a library that contains the calls from SNMP agent, it uses the
wrong link path : /usr/bin/ld
The configure line:
./configure LD=${CROSS_COMPILE}ld CC=${CROSS_COMPILE}gcc
CXX=${CROSS_COMPILE}g++
Please note that I am using net-snmp-5.5, and the with-ld option is not
supported: Wish it was.
“
The Net-SNMP project uses the standard configure mechanism, so the usual
cross-compilation options are available - in particular --host and --target. It
is also possible to specify the compiler
Can you check with keeping LD and CC before ./configure.
The changed one should look like
LD=${CROSS_COMPILE}ld CC=${CROSS_COMPILE}gcc CXX=${CROSS_COMPILE}g++
CFLAGS=-g3 -O0 --prefix=${FILESYSTEM_ROOT_DIR} ./configure
--host=m68k-linux-gnu --build=i686 --target=m68k-linux-gnu