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:
parent
63f0477111
commit
1f8afdb9cf
@ -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
|
||||
|
||||
|
@ -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 */
|
12
net/irssi-silc/patches/patch-lib_silcmath_tma_h
Normal file
12
net/irssi-silc/patches/patch-lib_silcmath_tma_h
Normal 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
|
Loading…
Reference in New Issue
Block a user