diff options
author | Brent Cook <busterb@gmail.com> | 2017-04-29 18:24:35 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2017-04-29 18:36:14 -0500 |
commit | 1f13e7956b6c739e5d198a120b8dfaea4020f914 (patch) | |
tree | 28b5b4e7051de6353636b83675d3745006ff5655 /m4 | |
parent | 993f5cf6f941c3554bdccb12119a8864eedf7ab6 (diff) | |
download | portable-1f13e7956b6c739e5d198a120b8dfaea4020f914.tar.gz portable-1f13e7956b6c739e5d198a120b8dfaea4020f914.tar.bz2 portable-1f13e7956b6c739e5d198a120b8dfaea4020f914.zip |
only include ia32 syms on i?86/x86_64 targets
Diffstat (limited to 'm4')
-rw-r--r-- | m4/check-libc.m4 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/m4/check-libc.m4 b/m4/check-libc.m4 index d9b7b88..6b2e64c 100644 --- a/m4/check-libc.m4 +++ b/m4/check-libc.m4 | |||
@@ -150,6 +150,11 @@ fi | |||
150 | ]) | 150 | ]) |
151 | 151 | ||
152 | AC_DEFUN([GENERATE_CRYPTO_PORTABLE_SYM], [ | 152 | AC_DEFUN([GENERATE_CRYPTO_PORTABLE_SYM], [ |
153 | AS_CASE([$host_cpu], | ||
154 | [i?86], [HOSTARCH=intel], | ||
155 | [x86_64], [HOSTARCH=intel], | ||
156 | ) | ||
157 | AC_SUBST([HOSTARCH]) | ||
153 | crypto_sym=$srcdir/crypto/crypto.sym | 158 | crypto_sym=$srcdir/crypto/crypto.sym |
154 | crypto_p_sym=./crypto/crypto_portable.sym | 159 | crypto_p_sym=./crypto/crypto_portable.sym |
155 | echo "generating $crypto_p_sym ..." | 160 | echo "generating $crypto_p_sym ..." |
@@ -207,6 +212,9 @@ fi | |||
207 | if test "x$ac_cv_func_timingsafe_memcmp" = "xno" ; then | 212 | if test "x$ac_cv_func_timingsafe_memcmp" = "xno" ; then |
208 | echo timingsafe_memcmp >> $crypto_p_sym | 213 | echo timingsafe_memcmp >> $crypto_p_sym |
209 | fi | 214 | fi |
215 | if test "x$HOSTARCH" = "xintel" ; then | ||
216 | echo OPENSSL_ia32cap_P >> $crypto_p_sym | ||
217 | fi | ||
210 | if test "x$HOST_OS" = "xwin" ; then | 218 | if test "x$HOST_OS" = "xwin" ; then |
211 | echo posix_perror >> $crypto_p_sym | 219 | echo posix_perror >> $crypto_p_sym |
212 | echo posix_fopen >> $crypto_p_sym | 220 | echo posix_fopen >> $crypto_p_sym |