[PATCH] Fix building issue if built without optimization.

Sebastian Ramacher s.ramacher at gmx.at
Wed Nov 16 10:16:21 CST 2011


If gcc decides not to inline the call to size _fastmath can not be used since
the definition of size only creates an inline definition. Thus no a symbol named
size does not exist in the _fastmath extension and it fails to be loaded due to
an unresolved reference. See [1] for details.

[1] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49653
---
 src/_fastmath.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/_fastmath.c b/src/_fastmath.c
index eff3e29..5882f3d 100644
--- a/src/_fastmath.c
+++ b/src/_fastmath.c
@@ -998,7 +998,7 @@ cleanup:
 
 
 
-INLINE size_t size (mpz_t n)
+static INLINE size_t size (mpz_t n)
 {
 	return mpz_sizeinbase (n, 2);
 }
-- 
1.7.7.2


--------------000804040702090103040102--


More information about the pycrypto mailing list