STM8-SPL-SDCC icon indicating copy to clipboard operation
STM8-SPL-SDCC copied to clipboard

sdcclib has been replaced by sdar in SDCC 3.9

Open kenyapcomau opened this issue 5 years ago • 2 comments

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.

kenyapcomau avatar Jan 10 '20 06:01 kenyapcomau

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.

Rudo2204 avatar May 22 '20 08:05 Rudo2204

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.

kenyapcomau avatar May 22 '20 08:05 kenyapcomau