aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'crypto')
-rw-r--r--crypto/Makefile.am74
1 files changed, 74 insertions, 0 deletions
diff --git a/crypto/Makefile.am b/crypto/Makefile.am
index 701cd4a..046a623 100644
--- a/crypto/Makefile.am
+++ b/crypto/Makefile.am
@@ -18,6 +18,80 @@ EXTRA_DIST += compat/strcasecmp.c
18BUILT_SOURCES = crypto_portable.sym 18BUILT_SOURCES = crypto_portable.sym
19CLEANFILES = crypto_portable.sym 19CLEANFILES = crypto_portable.sym
20 20
21crypto_portable.sym:
22 -echo "generating crypto_portable.sym ..."
23 -cp $(top_srcdir)/crypto/crypto.sym crypto_portable.sym
24 -chmod u+w crypto_portable.sym
25if !HAVE_ARC4RANDOM_BUF
26 -echo arc4random >> crypto_portable.sym
27 -echo arc4random_buf >> crypto_portable.sym
28 -echo arc4random_uniform >> crypto_portable.sym
29if !HAVE_GETENTROPY
30 -echo getentropy >> crypto_portable.sym
31endif
32endif
33if !HAVE_ASPRINTF
34 -echo asprintf >> crypto_portable.sym
35 -echo vasprintf >> crypto_portable.sym
36endif
37if !HAVE_EXPLICIT_BZERO
38 -echo explicit_bzero >> crypto_portable.sym
39endif
40if !HAVE_FREEZERO
41 -echo freezero >> crypto_portable.sym
42endif
43if !HAVE_INET_PTON
44 -echo inet_pton >> crypto_portable.sym
45endif
46if !HAVE_REALLOCARRAY
47 -echo reallocarray >> crypto_portable.sym
48endif
49if !HAVE_RECALLOCARRAY
50 -echo recallocarray >> crypto_portable.sym
51endif
52if !HAVE_STRLCAT
53 -echo strlcat >> crypto_portable.sym
54endif
55if !HAVE_STRLCPY
56 -echo strlcpy >> crypto_portable.sym
57endif
58if !HAVE_STRNDUP
59 -echo strndup >> crypto_portable.sym
60endif
61if !HAVE_STRNLEN
62 -echo strnlen >> crypto_portable.sym
63endif
64if !HAVE_STRSEP
65 -echo strsep >> crypto_portable.sym
66endif
67if !HAVE_TIMEGM
68 -echo timegm >> crypto_portable.sym
69endif
70if !HAVE_TIMINGSAFE_BCMP
71 -echo timingsafe_bcmp >> crypto_portable.sym
72endif
73if !HAVE_TIMINGSAFE_MEMCMP
74 -echo timingsafe_memcmp >> crypto_portable.sym
75endif
76if HOST_CPU_IS_INTEL
77 -echo OPENSSL_ia32cap_P >> crypto_portable.sym
78endif
79if HOST_WIN
80 -echo posix_perror >> crypto_portable.sym
81 -echo posix_fopen >> crypto_portable.sym
82 -echo posix_fgets >> crypto_portable.sym
83 -echo posix_open >> crypto_portable.sym
84 -echo posix_rename >> crypto_portable.sym
85 -echo posix_connect >> crypto_portable.sym
86 -echo posix_close >> crypto_portable.sym
87 -echo posix_read >> crypto_portable.sym
88 -echo posix_write >> crypto_portable.sym
89 -echo posix_getsockopt >> crypto_portable.sym
90 -echo posix_setsockopt >> crypto_portable.sym
91 -grep -v BIO_s_log crypto_portable.sym > crypto_portable.sym.tmp
92 -mv crypto_portable.sym.tmp crypto_portable.sym
93endif
94
21libcrypto_la_LDFLAGS = -version-info @LIBCRYPTO_VERSION@ -no-undefined -export-symbols crypto_portable.sym 95libcrypto_la_LDFLAGS = -version-info @LIBCRYPTO_VERSION@ -no-undefined -export-symbols crypto_portable.sym
22libcrypto_la_LIBADD = libcompat.la 96libcrypto_la_LIBADD = libcompat.la
23if !HAVE_EXPLICIT_BZERO 97if !HAVE_EXPLICIT_BZERO