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

__builtin_cpu_supports fails on Ubuntu 16.04 when built as a shared object #139

Closed
solidpixel opened this issue Jul 27, 2020 · 2 comments
Closed

Comments

@solidpixel
Copy link
Contributor

User feedback that building using the Ubuntu 16.04 default compiler fails when compiling the core library as a shared object. This looks to be a known issue when using particular versions of GCC:

nothings/stb#280

Given 16.04 is in extended maintenance for a while yet it would be good to support it.

@solidpixel
Copy link
Contributor Author

Workaround is to link the shared object with -lgcc_s -lgcc.

@solidpixel
Copy link
Contributor Author

solidpixel commented Jul 27, 2020

Fixed in 88825d3; we now simply use manual CPUID queries like Windows.

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