From 6a1cc1496783ec24845557160d8548ee108fd7ef Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Sat, 29 Apr 2017 18:24:35 -0500 Subject: only include ia32 syms on i?86/x86_64 targets --- m4/check-libc.m4 | 8 ++++++++ 1 file changed, 8 insertions(+) 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 ]) AC_DEFUN([GENERATE_CRYPTO_PORTABLE_SYM], [ +AS_CASE([$host_cpu], + [i?86], [HOSTARCH=intel], + [x86_64], [HOSTARCH=intel], +) +AC_SUBST([HOSTARCH]) crypto_sym=$srcdir/crypto/crypto.sym crypto_p_sym=./crypto/crypto_portable.sym echo "generating $crypto_p_sym ..." @@ -203,6 +208,9 @@ fi if test "x$ac_cv_func_timingsafe_memcmp" = "xno" ; then echo timingsafe_memcmp >> $crypto_p_sym fi +if test "x$HOSTARCH" = "xintel" ; then + echo OPENSSL_ia32cap_P >> $crypto_p_sym +fi if test "x$HOST_OS" = "xwin" ; then echo posix_perror >> $crypto_p_sym echo posix_fopen >> $crypto_p_sym -- cgit v1.2.3-55-g6feb