Why don't you use the OpenWRT toolchain and the OpenWRT packaging to cross-compile ?
Saverio 2010/7/8 Airton Ishimori <[email protected]>: > Some problem with my Makefile ?? > > OLSRD_PLUGIN = true > PLUGIN_NAME = olsrd_test > PLUGIN_VER = 0.1 > > TOPDIR = ../.. > include $(TOPDIR)/Makefile.inc > > default_target: $(PLUGIN_FULLNAME) > > $(PLUGIN_FULLNAME): $(OBJS) version-script.txt > mipsel-linux-gcc $(LDFLAGS) -o $(PLUGIN_FULLNAME) $(OBJS) $(LIBS) > -lc > > install: $(PLUGIN_FULLNAME) > $(STRIP) $(PLUGIN_FULLNAME) > $(INSTALL_LIB) > > clean: > rm -f $(OBJS) $(SRCS:%.c=%.d) $(PLUGIN_FULLNAME) > > > When I try compile occurr some problems: > > .... > .... > > mipsel-linux-uclibc/bin/ld: src/test_plugin.o: Relocations in generic ELF > (EM: 3) > src/test_plugin.o: could not read symbols: File in wrong format > collect2: ld returned 1 exit status > make: ** [olsrd_test.so.0.1] Error 1 > > The plugin is dinamic library for olsrd-0.6. When I use the line: > > $(CC) $(LDFLAGS) -o $(PLUGIN_FULLNAME) $(OBJS) $(LIBS) -lc > > instead of: > > mipsel-linux-gcc $(LDFLAGS) -o $(PLUGIN_FULLNAME) $(OBJS) $(LIBS) -lc > > It compile, but when I try execute olsrd -f /etc/olsrd.conf some problems > returned how "ELF not executable MIPSEL". > I think that this problems is because of the used compile. > > > -- > Airton Ishimori > > > _______________________________________________ > openwrt-devel mailing list > [email protected] > https://lists.openwrt.org/mailman/listinfo/openwrt-devel > > _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
