summaryrefslogtreecommitdiffstats
path: root/lib/libssl
diff options
context:
space:
mode:
authormpf <mpf@openbsd.org>2011-07-08 01:37:54 +0000
committermpf <mpf@openbsd.org>2011-07-08 01:37:54 +0000
commit94529664640d23629e68fcd0f985d37e8780b577 (patch)
tree98c4e160d0230984719aaf60b892088a130904b1 /lib/libssl
parentmake it clear that !commands are run in the single-user environment, (diff)
downloadwireguard-openbsd-94529664640d23629e68fcd0f985d37e8780b577.tar.xz
wireguard-openbsd-94529664640d23629e68fcd0f985d37e8780b577.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 'lib/libssl')
-rw-r--r--lib/libssl/crypto/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libssl/crypto/Makefile b/lib/libssl/crypto/Makefile
index 7b085f5c703..8fba3cebef9 100644
--- a/lib/libssl/crypto/Makefile
+++ b/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