- Sun Feb 15, 2015 3:34 am
#9800
You have to get rid of eagle_lwip_if_alloc.o in your libmain.a. Libraries are just archives with object files inside. You have to unpack it, remove/replace eagle_lwip_if_alloc.o and pack it again. The AR util from gcc can do it all for you.
Option 1 - replace original eagle_lwip_if_alloc.o with the new one:
Code: Select allxtensa-lx106-elf-ar rs libmain.a PATH_TO_LWIP/our/eagle_lwip_if_alloc.o
This has to be done each time netif structure is changed in your project.
Option 2 (my preferred way) - remove the eagle_lwip_if_alloc.o from libmain.a:
Code: Select allxtensa-lx106-elf-ar ds libmain.a eagle_lwip_if_alloc.o
And modify lwip Makefile to include our/eagle_lwip_if_alloc.o in OBJS so that its added to liblwip.a. This may create some little problems with the linking order in existing projects since eagle_lwip_if_alloc.o is now in different library, though.