Open kenyapcomau opened 4 years ago
It's quite easy to fix this, you just need to change 2 lines in ./Libraries/STM8_StdPeriph_Driver/Makefile
like this:
Line 25: from AR = sdcc
to AR = sdar
and line 84 from: $(AR) -a $(TARGET) $^
to: $(AR) -rc $(TARGET) $^
That should resolve the problem.
I know how to change it to call sdar and that was my workaround, but you missed my last sentence where I said it should be conditional on the SDCC version so that it just works no matter which SDCC version is used.
Instead of
sdcclib -a archive files
it should now be
sdar -rc archive files
But I don't know how to make the Makefile rules conditional on SDCC version.