]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix cross-compiling when 128-bit math compiles but won't link
authorNick Mathewson <nickm@torproject.org>
Mon, 5 May 2014 15:44:02 +0000 (11:44 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 5 May 2014 15:44:02 +0000 (11:44 -0400)
Apparently, there exist cross-compiling environments for arm7 where
you can compile a 64x64->128 multiply, but not link it.

Fixes bug 11729; bugfix on 0.2.4.8-alpha. Patch from 'conradev'.

changes/bug11729 [new file with mode: 0644]
configure.ac

diff --git a/changes/bug11729 b/changes/bug11729
new file mode 100644 (file)
index 0000000..93751cf
--- /dev/null
@@ -0,0 +1,5 @@
+  o Minor bugfixes (build):
+    - When deciding whether to build the 64-bit curve25519 implementation,
+      detect platforms where we can compile 128-bit arithmetic but cannot
+      link it. Fixes bug 11729; bugfix on 0.2.4.8-alpha. Patch
+      from "conradev".
index 3ef5cdd7d0e9953eed73e686e44b05b30e36c445..a96a333c1b580614990a973b2305d763f25b903c 100644 (file)
@@ -770,7 +770,7 @@ if test x$enable_curve25519 != xno; then
         ])],
        [tor_cv_can_use_curve25519_donna_c64=yes],
         [tor_cv_can_use_curve25519_donna_c64=no],
-       [AC_COMPILE_IFELSE(
+       [AC_LINK_IFELSE(
           [AC_LANG_PROGRAM([dnl
         #include <stdint.h>
         typedef unsigned uint128_t __attribute__((mode(TI)));