Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdcclib has been replaced by sdar in SDCC 3.9 #6

Open
kenyapcomau opened this issue Jan 10, 2020 · 2 comments
Open

sdcclib has been replaced by sdar in SDCC 3.9 #6

kenyapcomau opened this issue Jan 10, 2020 · 2 comments

Comments

@kenyapcomau
Copy link

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
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants