make this compile on sparc64; report and help by marc@

This commit is contained in:
fgsch 2003-07-18 17:53:19 +00:00
parent b39a08aec7
commit 57619bf57b
3 changed files with 27 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.29 2002/10/05 21:11:09 fgsch Exp $
# $OpenBSD: Makefile,v 1.30 2003/07/18 17:53:19 fgsch Exp $
COMMENT= "Pretty Good Privacy 5.0i (world wide use)"
@ -34,6 +34,11 @@ MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/config
WRKDIST= ${WRKDIR}/pgp50i/src
# XXX workaround gcc bugs on sparc64
.if ${MACHINE_ARCH:Msparc64}
PATCH_LIST= patch-* gcc-*
.endif
post-patch:
@mv ${WRKSRC}/man/pgp.1 ${WRKSRC}/man/pgp5.1

View File

@ -0,0 +1,10 @@
$OpenBSD: gcc-patch-lib_pgp_hash_Makefile_in,v 1.1 2003/07/18 17:53:19 fgsch Exp $
--- lib/pgp/hash/Makefile.in.orig Fri Jul 18 12:01:53 2003
+++ lib/pgp/hash/Makefile.in Fri Jul 18 12:02:23 2003
@@ -10,3 +10,6 @@ OBJS= pgpHash.o pgpMD5.o pgpSHA.o pgpRIP
SHAREDHDRS= pgpHash.h
all:: DONE
+
+pgpSHA.o:
+ $(CC) $(CFLAGS) -O0 -c $<

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-lib_pgp_include_pgpUsuals_h,v 1.1 2003/07/18 17:53:19 fgsch Exp $
--- lib/pgp/include/pgpUsuals.h.orig Sat Aug 9 18:44:58 1997
+++ lib/pgp/include/pgpUsuals.h Thu Jul 17 20:55:40 2003
@@ -52,7 +52,6 @@ typedef long int32;
#if ULONG_MAX == 0xfffffffffffffffful
typedef ulong bnword64;
#define BNWORD64 bnword64
-#define HAVE64 1
#endif
#endif