Forum Discussion
frycoo
New Contributor
4 years agoSolved? No. But a temporary solution is to modify Makefile of BSP (in my case the BSP build causes the problem) to run nios2-elf-ar twice and split the argument list (nios2-elf-ar just adds new files into archive).
```
$(BSP_LIB): $(OBJS)
@$(ECHO) Creating $@...
$(AR_PRE_PROCESS)
$(RM) -f $@
$(AR) $(BSP_ARFLAGS) $@ $(wordlist 1, 10, $^)
$(AR) $(BSP_ARFLAGS) $@ $(wordlist 10, 1000, $^)
$(AR_POST_PROCESS)
```
The drawback here is, of course, that BSP Makefile is autogenerated and modification have to be done every time BSP is modified.