summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authoris <is>1999-01-30 20:15:19 +0000
committeris <is>1999-01-30 20:15:19 +0000
commita4428f2ed3789fa4a8dce8f0b6b0628afdd8be5c (patch)
treeceb962d235135a10d20d525e4e5b68a6a402ea8f /security
parent95bab811455eb165172cf4428f7b91d834198174 (diff)
downloadpkgsrc-a4428f2ed3789fa4a8dce8f0b6b0628afdd8be5c.tar.gz
Make the ssh package 68060 aware.
Like for the pgp2 package, we avoid 68020-40 tuned assembler code that makes heavy use of the 32<->64bit mul or div, which is emulated on the 68060. Currently, we do this by using the --disable-asm configure option and passing -m68060 to the compiler. I couldn't figure out how to pass host=m68060--netbsd to the gmp subconfigure. Even this way, there is a speedup of about 6 for the sshd or ssh startup. To enable, set M68060=yes in your /etc/mk.conf, when building this package.
Diffstat (limited to 'security')
-rw-r--r--security/ssh/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/security/ssh/Makefile b/security/ssh/Makefile
index d23590d6ac7..5dc1cf8aa11 100644
--- a/security/ssh/Makefile
+++ b/security/ssh/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.37 1999/01/30 20:09:44 is Exp $
+# $NetBSD: Makefile,v 1.38 1999/01/30 20:15:19 is Exp $
# FreeBSD Id: Makefile,v 1.47 1997/11/10 22:04:42 dima Exp
#
@@ -77,6 +77,12 @@ CONFIGURE_ARGS+= --disable-suid-ssh
CFLAGS+= -DLIBWRAP_FWD
.endif
+# be more effective on M68060 machines
+.if defined(M68060)
+CONFIGURE_ARGS+= --disable-asm
+CFLAGS+= -m68060
+.endif
+
PKGDIR= ${WRKDIR}/pkg
pre-patch: