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 build with LTO #672

Merged
merged 1 commit into from Jan 5, 2023
Merged

Conversation

ssilverman
Copy link
Contributor

Make _serialEvent_default "const" and also make the weak definitions "extern" (aka "public"). The first change resolves the section type conflicts and the second change resolves the "weak declaration must be public" errors.

See also: https://gcc.gnu.org/legacy-ml/gcc-help/2017-12/msg00021.html

Make _serialEvent_default "const" and also make the weak definitions
"extern" (aka "public"). The first change resolves the section type
conflicts and the second change resolves the "weak declaration must be
public" errors.
@ssilverman ssilverman changed the title Fix compilation with LTO Fix build with LTO Jan 5, 2023
@PaulStoffregen PaulStoffregen merged commit 3e85dd3 into PaulStoffregen:master Jan 5, 2023
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

Successfully merging this pull request may close these issues.

None yet

2 participants