Title: linking shared library

Hi,

        I am using 5.2.1 in Linux machine.

       

        I had linked shared library ( .so ) with snmpd binary by setting $LDFLAGS ,  $CFLAGS , $CPPFLAGS environment variables.

        But while compiling library is linked from the /usr/lib path. Is this path is specified some where to look for library?

        While building snmpd I am getting as,

gcc -D__INITSTAT_ERR_ -D__REQTAG_CHANGE_ -Dlinux -o .libs/snmpd snmpd.o  -L/tmp/yogesh/may22/ ./.libs/libnetsnmpmibs.so ./.libs/libnetsnmpagent.so helpers/.libs/libnetsnmphelpers.so ../snmplib/.libs/libnetsnmp.so -ldl -lcrypto -lm -lMyProxy -lMyDummy -lMyCommon -lUtils -lsftp /usr/lib/libexpat.so

        How I can make /usr/lib/libexpat.so to -lexpat? I should not change in the Makefile generated in configure script. Every time configure script should generated with out /usr/lib.

        Do I have to set some other env? I had checked LD_LIBRARY_PATH also, /usr/lib path is not added on this.

Thanks and Regards,

Santhosh

_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to