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

Use the C++ nano libraries with nano.specs #2

Closed
ilg-ul opened this issue May 2, 2022 · 3 comments
Closed

Use the C++ nano libraries with nano.specs #2

ilg-ul opened this issue May 2, 2022 · 3 comments

Comments

@ilg-ul
Copy link
Member

ilg-ul commented May 2, 2022

Update newlib/ibgloss/riscv/nano.specs to also replace the C++ libraries with the nano versions.

@ilg-ul ilg-ul changed the title Use C++ nano libraries with nano.specs Use the C++ nano libraries with nano.specs May 2, 2022
@ilg-ul
Copy link
Member Author

ilg-ul commented May 2, 2022

@ilg-ul
Copy link
Member Author

ilg-ul commented May 15, 2022

Add code at run-time to patch libgloss/riscv/nano.specs and replace

%(nano_link) %:replace-outfile(-lc -lc_nano) %:replace-outfile(-lg -lg_nano) %:replace-outfile(-lm -lm_nano)

with:

%(nano_link) %:replace-outfile(-lc -lc_nano) %:replace-outfile(-lg -lg_nano) %:replace-outfile(-lm -lm_nano) %:replace-outfile(-lstdc++ -lstdc++_nano) %:replace-outfile(-lsupc++ -lsupc++_nano)

Then test if the file includes -lstdc++_nano and -lsupc++_nano.

@ilg-ul
Copy link
Member Author

ilg-ul commented Jul 6, 2022

Fixed.

@ilg-ul ilg-ul closed this as completed Jul 6, 2022
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