bschwand / STM8-SPL-SDCC

STM8S SPL for SDCC
46 stars 12 forks source link

sdcclib has been replaced by sdar in SDCC 3.9 #6

Open kenyapcomau opened 4 years ago

kenyapcomau commented 4 years ago

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.

Rudo2204 commented 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.

kenyapcomau commented 4 years ago

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.