- Fix up the compiler flags and enable the extended file support

to allow for more sane hard drive sizes.  From Brad.

- Honour CC.
This commit is contained in:
sthen 2011-12-24 12:57:10 +00:00
parent 3e5df4f4ab
commit be2f32a2c9
3 changed files with 19 additions and 6 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.71 2011/10/16 15:03:24 naddy Exp $
# $OpenBSD: Makefile,v 1.72 2011/12/24 12:57:10 sthen Exp $
# $NetBSD: Makefile,v 1.2 1998/08/23 20:48:03 frueauf Exp $
COMMENT= PDP, IBM 1401, Nova and other CPUs simulator
PKGNAME= simh-3.8.1
DISTNAME= simhv38-1
REVISION= 5
REVISION= 6
CATEGORIES= emulators
MASTER_SITES= ${HOMEPAGE}/sources/
@ -31,6 +31,7 @@ COPTS+= -DPATH_KA655X_BIN=\"${PREFIX}/lib/simh/vax/ka655x.bin\" \
-DPATH_VMB_EXE=\"${PREFIX}/lib/simh/vax/vmb.exe\"
MAKE_FILE= makefile
MAKE_FLAGS= CC="${CC}"
NO_REGRESS= Yes
VMEM_WARNING= Yes

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-makefile,v 1.13 2010/03/21 09:26:49 jasper Exp $
$OpenBSD: patch-makefile,v 1.14 2011/12/24 12:57:10 sthen Exp $
--- makefile.orig Wed Nov 19 21:53:48 2008
+++ makefile Tue Jan 26 13:21:07 2010
+++ makefile Sun Nov 20 03:46:22 2011
@@ -1,32 +1,6 @@
-#
-# CC Command
@ -32,8 +32,8 @@ $OpenBSD: patch-makefile,v 1.13 2010/03/21 09:26:49 jasper Exp $
- endif
-endif
+OS_CCDEFS = -D_GNU_SOURCE
+CFLAGS += $(OS_CCDEFS) -std=c99 -O2 -U__STRICT_ANSI__ -g -lm -I .
+NETWORK_OPT = -DUSE_NETWORK -isystem /usr/local/include -lpcap
+CFLAGS += $(OS_CCDEFS) -std=c99 -U__STRICT_ANSI__ -g -lm -I .
+NETWORK_OPT = -DUSE_NETWORK -lpcap
#
# Common Libraries

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-sim_fio_c,v 1.1 2011/12/24 12:57:10 sthen Exp $
--- sim_fio.c.orig Sun Nov 20 03:55:26 2011
+++ sim_fio.c Sun Nov 20 03:56:43 2011
@@ -302,7 +302,7 @@ return fseeko64 (st, xpos, origin);
/* Apple OS/X */
-#if defined (__APPLE__) || defined (__FreeBSD__)
+#if defined (__APPLE__) || defined (__FreeBSD__) || defined (__OpenBSD__)
#define _SIM_IO_FSEEK_EXT_ 1
int sim_fseek (FILE *st, t_addr xpos, int origin)