aboutsummaryrefslogtreecommitdiff
path: root/src/lib/include.libdonna.am
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-21 13:04:09 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-21 13:19:00 -0400
commite9943d5459c30a7dba8fa99c7f1537e3ab208749 (patch)
treeff08c84e4f2c9068098b6e9ff631e797ac18bd22 /src/lib/include.libdonna.am
parent71571e34283d071b15fce62bce49f0a268f53cd6 (diff)
downloadtor-e9943d5459c30a7dba8fa99c7f1537e3ab208749.tar.gz
tor-e9943d5459c30a7dba8fa99c7f1537e3ab208749.zip
Move responsibility for libdonna out of src/common
Diffstat (limited to 'src/lib/include.libdonna.am')
-rw-r--r--src/lib/include.libdonna.am24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/lib/include.libdonna.am b/src/lib/include.libdonna.am
new file mode 100644
index 0000000000..5b92dc58a0
--- /dev/null
+++ b/src/lib/include.libdonna.am
@@ -0,0 +1,24 @@
+src_lib_libcurve25519_donna_a_CFLAGS=
+
+if BUILD_CURVE25519_DONNA
+src_lib_libcurve25519_donna_a_SOURCES=\
+ src/ext/curve25519_donna/curve25519-donna.c
+# See bug 13538 -- this code is known to have signed overflow issues.
+src_lib_libcurve25519_donna_a_CFLAGS+=\
+ @F_OMIT_FRAME_POINTER@ @CFLAGS_CONSTTIME@
+noinst_LIBRARIES+=src/lib/libcurve25519_donna.a
+LIBDONNA=src/lib/libcurve25519_donna.a
+else
+if BUILD_CURVE25519_DONNA_C64
+src_lib_libcurve25519_donna_a_CFLAGS+=@CFLAGS_CONSTTIME@
+src_lib_libcurve25519_donna_a_SOURCES=\
+ src/ext/curve25519_donna/curve25519-donna-c64.c
+noinst_LIBRARIES+=src/lib/libcurve25519_donna.a
+LIBDONNA=src/lib/libcurve25519_donna.a
+else
+LIBDONNA=
+endif
+endif
+
+LIBDONNA += $(LIBED25519_REF10)
+LIBDONNA += $(LIBED25519_DONNA)