summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormpf <>2011-07-08 01:37:54 +0000
committermpf <>2011-07-08 01:37:54 +0000
commit1f4433528384012454c4e42b72d82a6e7bd6d88d (patch)
treea2422368dfcafbe563eaf47cfc049ed19e0d4f18 /src
parent8668bf5c97e912699054374c3d2f9576420dc37c (diff)
downloadopenbsd-1f4433528384012454c4e42b72d82a6e7bd6d88d.tar.gz
openbsd-1f4433528384012454c4e42b72d82a6e7bd6d88d.tar.bz2
openbsd-1f4433528384012454c4e42b72d82a6e7bd6d88d.zip
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@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libssl/crypto/Makefile6
1 files changed, 3 insertions, 3 deletions
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 @@
1# $OpenBSD: Makefile,v 1.58 2010/10/07 10:49:39 djm Exp $ 1# $OpenBSD: Makefile,v 1.59 2011/07/08 01:37:54 mpf Exp $
2 2
3LIB= crypto 3LIB= crypto
4WANTLINT= 4WANTLINT=
@@ -500,13 +500,13 @@ GENERATED+=${f}.S
500${f}.S: ${LCRYPTO_SRC}/${dir}/asm/${f}.pl ${LCRYPTO_SRC}/perlasm/x86gas.pl 500${f}.S: ${LCRYPTO_SRC}/${dir}/asm/${f}.pl ${LCRYPTO_SRC}/perlasm/x86gas.pl
501 /usr/bin/perl -I${LCRYPTO_SRC}/perlasm -I${LCRYPTO_SRC}/${dir}/asm \ 501 /usr/bin/perl -I${LCRYPTO_SRC}/perlasm -I${LCRYPTO_SRC}/${dir}/asm \
502 ${LCRYPTO_SRC}/${dir}/asm/${f}.pl \ 502 ${LCRYPTO_SRC}/${dir}/asm/${f}.pl \
503 openbsd-elf 386 ${PICFLAG} > ${.TARGET} 503 openbsd-elf ${CFLAGS} 386 ${PICFLAG} > ${.TARGET}
504.endfor 504.endfor
505SRCS+= x86cpuid.S 505SRCS+= x86cpuid.S
506GENERATED+=x86cpuid.S 506GENERATED+=x86cpuid.S
507x86cpuid.S: ${LCRYPTO_SRC}/x86cpuid.pl ${LCRYPTO_SRC}/perlasm/x86gas.pl 507x86cpuid.S: ${LCRYPTO_SRC}/x86cpuid.pl ${LCRYPTO_SRC}/perlasm/x86gas.pl
508 /usr/bin/perl -I${LCRYPTO_SRC}/perlasm ${LCRYPTO_SRC}/x86cpuid.pl \ 508 /usr/bin/perl -I${LCRYPTO_SRC}/perlasm ${LCRYPTO_SRC}/x86cpuid.pl \
509 openbsd-elf 386 ${PICFLAG} > ${.TARGET} 509 openbsd-elf ${CFLAGS} 386 ${PICFLAG} > ${.TARGET}
510SRCS+= bf_cbc.c 510SRCS+= bf_cbc.c
511.elif (${MACHINE_ARCH} == "amd64") 511.elif (${MACHINE_ARCH} == "amd64")
512SRCS+= bf_enc.c des_enc.c 512SRCS+= bf_enc.c des_enc.c