From 1f13e7956b6c739e5d198a120b8dfaea4020f914 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(+) (limited to 'm4') 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 ]) 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 ..." @@ -207,6 +212,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