diff options
author | Brent Cook <busterb@gmail.com> | 2017-04-29 18:24:35 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2017-04-29 21:42:31 -0500 |
commit | 6a1cc1496783ec24845557160d8548ee108fd7ef (patch) | |
tree | 120b3478bd18869dc57412add094df7282c8ad8c | |
parent | fe69b6b418a24937d3c6bb35741965f95c164b15 (diff) | |
download | portable-6a1cc1496783ec24845557160d8548ee108fd7ef.tar.gz portable-6a1cc1496783ec24845557160d8548ee108fd7ef.tar.bz2 portable-6a1cc1496783ec24845557160d8548ee108fd7ef.zip |
only include ia32 syms on i?86/x86_64 targets
-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 066b394..2a379ae 100644 --- a/m4/check-libc.m4 +++ b/m4/check-libc.m4 | |||
@@ -149,6 +149,11 @@ fi | |||
149 | ]) | 149 | ]) |
150 | 150 | ||
151 | AC_DEFUN([GENERATE_CRYPTO_PORTABLE_SYM], [ | 151 | AC_DEFUN([GENERATE_CRYPTO_PORTABLE_SYM], [ |
152 | AS_CASE([$host_cpu], | ||
153 | [i?86], [HOSTARCH=intel], | ||
154 | [x86_64], [HOSTARCH=intel], | ||
155 | ) | ||
156 | AC_SUBST([HOSTARCH]) | ||
152 | crypto_sym=$srcdir/crypto/crypto.sym | 157 | crypto_sym=$srcdir/crypto/crypto.sym |
153 | crypto_p_sym=./crypto/crypto_portable.sym | 158 | crypto_p_sym=./crypto/crypto_portable.sym |
154 | echo "generating $crypto_p_sym ..." | 159 | echo "generating $crypto_p_sym ..." |
@@ -203,6 +208,9 @@ fi | |||
203 | if test "x$ac_cv_func_timingsafe_memcmp" = "xno" ; then | 208 | if test "x$ac_cv_func_timingsafe_memcmp" = "xno" ; then |
204 | echo timingsafe_memcmp >> $crypto_p_sym | 209 | echo timingsafe_memcmp >> $crypto_p_sym |
205 | fi | 210 | fi |
211 | if test "x$HOSTARCH" = "xintel" ; then | ||
212 | echo OPENSSL_ia32cap_P >> $crypto_p_sym | ||
213 | fi | ||
206 | if test "x$HOST_OS" = "xwin" ; then | 214 | if test "x$HOST_OS" = "xwin" ; then |
207 | echo posix_perror >> $crypto_p_sym | 215 | echo posix_perror >> $crypto_p_sym |
208 | echo posix_fopen >> $crypto_p_sym | 216 | echo posix_fopen >> $crypto_p_sym |