Merge branch 'tor-gitlab/mr/583' into maint-0.4.7
[tor.git] / src / lib / include.libdonna.am
blob60a3f5097ebe0e510d89a99a420af7b8d00673e7
1 src_lib_libcurve25519_donna_a_CFLAGS=$(TOR_CFLAGS_CRYPTO)
3 if BUILD_CURVE25519_DONNA
4 src_lib_libcurve25519_donna_a_SOURCES=\
5         src/ext/curve25519_donna/curve25519-donna.c
6 # See bug 13538 -- this code is known to have signed overflow issues.
7 src_lib_libcurve25519_donna_a_CFLAGS+=\
8         @F_OMIT_FRAME_POINTER@ @CFLAGS_CONSTTIME@
9 noinst_LIBRARIES+=src/lib/libcurve25519_donna.a
10 LIBDONNA=src/lib/libcurve25519_donna.a
11 else
12 if BUILD_CURVE25519_DONNA_C64
13 src_lib_libcurve25519_donna_a_CFLAGS+=@CFLAGS_CONSTTIME@
14 src_lib_libcurve25519_donna_a_SOURCES=\
15         src/ext/curve25519_donna/curve25519-donna-c64.c
16 noinst_LIBRARIES+=src/lib/libcurve25519_donna.a
17 LIBDONNA=src/lib/libcurve25519_donna.a
18 else
19 LIBDONNA=
20 endif
21 endif
23 LIBDONNA += $(LIBED25519_REF10)
24 LIBDONNA += $(LIBED25519_DONNA)