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

Fix lm32 makefile include paths #2

Open
shenki opened this issue Mar 15, 2017 · 1 comment
Open

Fix lm32 makefile include paths #2

shenki opened this issue Mar 15, 2017 · 1 comment

Comments

@shenki
Copy link

shenki commented Mar 15, 2017

The current makefile links with ld directly, but depends on libc from GCC. To be able to link we hardcode the path to the libc.a:

LIBS = -L/opt/lm32/lm32-elf/lib -lc -L/opt/lm32/lib/gcc/lm32-elf/6.3.0 -lgcc

We depend on libc for setjmp, longjmp. As we don't need libgcc, we could drop the second part of this to not depend on the path of a specific GCC version.

However, we would prefer to use GCC to link.

@shenki
Copy link
Author

shenki commented Mar 15, 2017

This is mostly resolved with 015e480.

However, I still don't understand why we need to specify -lc on the command line.

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

1 participant