sync with silc-client-1.1.4p0 patchset:

- do not enable DIV_SMALL by default, on all archs
- for now, don't use 128-bit arithmetics on amd64, as a work-around
for the gcc bug.  gcc3.3 mangles arguments for __divti3, and amd64
hangs on non-DIV_SMALL, when passing correct arguments.  this is
what silc-toolkit and silc-server use, too
unbreaks amd64
This commit is contained in:
martynas 2008-07-11 01:51:23 +00:00
parent 63f0477111
commit 1f8afdb9cf
3 changed files with 14 additions and 13 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.9 2008/03/31 03:32:33 merdely Exp $
# $OpenBSD: Makefile,v 1.10 2008/07/11 01:51:23 martynas Exp $
SHARED_ONLY= Yes
@ -6,7 +6,7 @@ COMMENT= SILC plugin for irssi
VERSION= 1.1.4
DISTNAME= silc-client-${VERSION}
PKGNAME= irssi-silc-${VERSION}
PKGNAME= irssi-silc-${VERSION}p0
CATEGORIES= net

View File

@ -1,11 +0,0 @@
$OpenBSD: patch-lib_silcmath_tma_c,v 1.1 2007/11/18 17:36:18 martynas Exp $
--- lib/silcmath/tma.c.orig Thu May 3 11:13:16 2007
+++ lib/silcmath/tma.c Wed Jun 13 22:55:31 2007
@@ -1570,6 +1570,7 @@ tma_mp_count_bits (tma_mp_int * a)
* Tom St Denis, tomstdenis@gmail.com, http://libtom.org
*/
+#define BN_MP_DIV_SMALL
#ifdef BN_MP_DIV_SMALL
/* slower bit-bang division... also smaller */

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-lib_silcmath_tma_h,v 1.1 2008/07/11 01:51:23 martynas Exp $
--- lib/silcmath/tma.h.orig Thu May 3 11:13:16 2007
+++ lib/silcmath/tma.h Fri Feb 29 23:36:31 2008
@@ -51,7 +51,7 @@ extern "C" {
/* detect 64-bit mode if possible */
-#if defined(__x86_64__)
+#if defined(__x86_64__) && !defined(__OpenBSD__)
#if !(defined(MP_64BIT) && defined(MP_16BIT) && defined(MP_8BIT))
#define MP_64BIT
#endif