From: Raghavendra P. <rag...@gm...> - 2008-09-01 12:06:11
|
I am cross-compiling from x86 to ppc with the following configure options '--with-ldflags=-L/home/gov/myCVS/cdspr/sw/app/snmp/../../common -L/home/gov/myCVS/cdspr/sw/app/snmp/../../isl/elib -L/home/gov/myCVS/cdspr/sw/app/snmp/../../isl/tos/linux/ppc -lTOS -lelib -lcommon' '--with-linkcc=ppc_4xxFP-g++' '--with-cflags= -g -I/home/gov/myCVS/cdspr/sw/app/snmp/../.. -I/home/gov/myCVS/cdspr/sw/app/snmp/../../common -I/home/gov/myCVS/cdspr/sw/app/snmp/../../isl -I/home/gov/myCVS/cdspr/sw/app/snmp/../../isl/elib -I/home/gov/myCVS/cdspr/sw/app/snmp/../../isl/tos -I/home/gov/myCVS/cdspr/sw/app/snmp/net-snmp-5.4.1/agent/mibgroup/xmRadio_modules' '--enable-debugging' '--without-root-access' '--enable-mini-agent' '--disable-embedded-perl' '--disable-perl-cc-checks' '--without-perl-modules' '--with-cc=ppc_4xxFP-gcc' '--target=ppc' '--with-endianness=big' '--build=x86' '--host=ppc' '--with-pic' the configure step runs fine but when I try to compile with make it throws me the following libtool error libtool: link: unable to infer tagged configuration libtool: link: specify a tag with `--tag' make[1]: *** [libnetsnmp.la] Error 1 make[1]: Leaving directory `/home/gov/myCVS/cdspr/sw/app/snmp/net-snmp-5.4.1/snmplib' I solved this problem by tweaking Make files in all sub-directories by adding the "--tar=CC" as below. LIBTOOL = $(SHELL) $(top_builddir)/libtool --tar=CC then make works fine. Interestingly I found --with-tags options in ./configure step. The ./configure does not work with --with-tags=CC , it complains saying it CC is not found. then I tried with --with-flags=ppc_4xxFP-gcc, it complains about that too. Please suggest me the proper argument for so that I do not have to tweak the makefiles. With regards, Raghavendra |