From 1f4433528384012454c4e42b72d82a6e7bd6d88d Mon Sep 17 00:00:00 2001 From: mpf <> Date: Fri, 8 Jul 2011 01:37:54 +0000 Subject: Pass CFLAGS (which contains -DOPENSSL_IA32_SSE2) to the perlasm build on i386. This enables SSE2 optimizations for bignum multiplications, Montgomery multiplications and sha512. This speeds up Diffie-Hellman operations in isakmpd and iked quite a bit. OK djm@, markus@, mikeb@ --- src/lib/libssl/crypto/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/lib/libssl/crypto/Makefile b/src/lib/libssl/crypto/Makefile index 7b085f5c70..8fba3cebef 100644 --- a/src/lib/libssl/crypto/Makefile +++ b/src/lib/libssl/crypto/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.58 2010/10/07 10:49:39 djm Exp $ +# $OpenBSD: Makefile,v 1.59 2011/07/08 01:37:54 mpf Exp $ LIB= crypto WANTLINT= @@ -500,13 +500,13 @@ GENERATED+=${f}.S ${f}.S: ${LCRYPTO_SRC}/${dir}/asm/${f}.pl ${LCRYPTO_SRC}/perlasm/x86gas.pl /usr/bin/perl -I${LCRYPTO_SRC}/perlasm -I${LCRYPTO_SRC}/${dir}/asm \ ${LCRYPTO_SRC}/${dir}/asm/${f}.pl \ - openbsd-elf 386 ${PICFLAG} > ${.TARGET} + openbsd-elf ${CFLAGS} 386 ${PICFLAG} > ${.TARGET} .endfor SRCS+= x86cpuid.S GENERATED+=x86cpuid.S x86cpuid.S: ${LCRYPTO_SRC}/x86cpuid.pl ${LCRYPTO_SRC}/perlasm/x86gas.pl /usr/bin/perl -I${LCRYPTO_SRC}/perlasm ${LCRYPTO_SRC}/x86cpuid.pl \ - openbsd-elf 386 ${PICFLAG} > ${.TARGET} + openbsd-elf ${CFLAGS} 386 ${PICFLAG} > ${.TARGET} SRCS+= bf_cbc.c .elif (${MACHINE_ARCH} == "amd64") SRCS+= bf_enc.c des_enc.c -- cgit v1.2.3-55-g6feb