aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2017-04-29 18:24:35 -0500
committerBrent Cook <bcook@openbsd.org>2017-04-29 21:42:31 -0500
commit6a1cc1496783ec24845557160d8548ee108fd7ef (patch)
tree120b3478bd18869dc57412add094df7282c8ad8c
parentfe69b6b418a24937d3c6bb35741965f95c164b15 (diff)
downloadportable-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.m48
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
151AC_DEFUN([GENERATE_CRYPTO_PORTABLE_SYM], [ 151AC_DEFUN([GENERATE_CRYPTO_PORTABLE_SYM], [
152AS_CASE([$host_cpu],
153 [i?86], [HOSTARCH=intel],
154 [x86_64], [HOSTARCH=intel],
155)
156AC_SUBST([HOSTARCH])
152crypto_sym=$srcdir/crypto/crypto.sym 157crypto_sym=$srcdir/crypto/crypto.sym
153crypto_p_sym=./crypto/crypto_portable.sym 158crypto_p_sym=./crypto/crypto_portable.sym
154echo "generating $crypto_p_sym ..." 159echo "generating $crypto_p_sym ..."
@@ -203,6 +208,9 @@ fi
203if test "x$ac_cv_func_timingsafe_memcmp" = "xno" ; then 208if test "x$ac_cv_func_timingsafe_memcmp" = "xno" ; then
204 echo timingsafe_memcmp >> $crypto_p_sym 209 echo timingsafe_memcmp >> $crypto_p_sym
205fi 210fi
211if test "x$HOSTARCH" = "xintel" ; then
212 echo OPENSSL_ia32cap_P >> $crypto_p_sym
213fi
206if test "x$HOST_OS" = "xwin" ; then 214if 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