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

libgcrypt fails to build with clang #1

Open
tstellar opened this issue Nov 9, 2020 · 1 comment
Open

libgcrypt fails to build with clang #1

tstellar opened this issue Nov 9, 2020 · 1 comment

Comments

@tstellar
Copy link
Contributor

tstellar commented Nov 9, 2020

random/jitterentropy-base.c relies on the gcc behavior that the OPTIMIZE macro is undefined when using #pragma GCC optimize ("O0"). The clang equivalent to this: #pragma clang optimize off, does not undefine the OPTIMIZE macro.

Upstream Patch/Discussion: http://gnupg.10057.n7.nabble.com/PATCH-Fix-build-of-jitterentropy-base-c-with-clang-td70843.html

@tpgxyz
Copy link

tpgxyz commented Nov 22, 2020

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