Fix build on current + (small) patches from NetBSD.
PR: ports/56204 Submitted by: Pedro F. Giffuni <giffunip@yahoo.com> Obtained from: NetBSD
This commit is contained in:
parent
867666aafb
commit
ab3ad05398
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88837
@ -20,12 +20,11 @@ ONLY_FOR_ARCHS= i386 alpha powerpc
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
USE_XLIB= yes
|
||||
USE_REINPLACE= yes
|
||||
USE_AUTOCONF= yes
|
||||
GNU_CONFIGURE= yes
|
||||
USE_REINPLACE= yes
|
||||
CONFIGURE_ARGS= --disable-debugger
|
||||
.if ${MACHINE_ARCH} != "i386"
|
||||
CONFIGURE_ARGS+= --disable-intp
|
||||
.if ${MACHINE_ARCH} == "alpha"
|
||||
CONFIGURE_ARGS+= --disable-intp
|
||||
.endif
|
||||
USE_GMAKE= yes
|
||||
|
||||
@ -37,7 +36,7 @@ INSTALLS_SHLIB= yes
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} >= 500113
|
||||
BROKEN= "Dumps core at making RscData.res.c"
|
||||
USE_GCC= 3.2
|
||||
.endif
|
||||
|
||||
FMT?= /usr/bin/fmt
|
||||
|
25
emulators/twin/files/patch-debugger+sig_context.h
Normal file
25
emulators/twin/files/patch-debugger+sig_context.h
Normal file
@ -0,0 +1,25 @@
|
||||
$NetBSD: patch-ae,v 1.1.1.1 2001/05/15 09:46:37 agc Exp $
|
||||
|
||||
--- debugger/sig_context.h.orig Sun May 13 03:01:07 2001
|
||||
+++ debugger/sig_context.h Sun May 13 03:25:31 2001
|
||||
@@ -59,6 +59,20 @@
|
||||
|
||||
#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||
|
||||
+enum {
|
||||
+ REG_GS = 0, REG_FS, REG_ES, REG_DS,
|
||||
+ REG_EDI, REG_ESI, REG_EBP,
|
||||
+ REG_EBX, REG_EDX, REG_ECX, REG_EAX,
|
||||
+ REG_EIP, REG_CS, REG_EFL, REG_ESP,
|
||||
+ REG_SS, REG_BSD_ONSTACK, REG_BSD_MASK13,
|
||||
+ REG_TRAPNO, REG_ERR,
|
||||
+
|
||||
+ REG_AX = 100, REG_BX, REG_CX, REG_DX,
|
||||
+ REG_BP, REG_IP, REG_SP,
|
||||
+ REG_DI, REG_SI,
|
||||
+ REG_FL
|
||||
+};
|
||||
+
|
||||
#include <signal.h>
|
||||
typedef struct sigcontext SIGCONTEXT;
|
||||
|
13
emulators/twin/files/patch-osdll+DrvSystem_ppc-gcc.s
Normal file
13
emulators/twin/files/patch-osdll+DrvSystem_ppc-gcc.s
Normal file
@ -0,0 +1,13 @@
|
||||
$NetBSD: patch-ai,v 1.1 2003/03/08 03:15:52 jmc Exp $
|
||||
|
||||
--- osdll/DrvSystem_ppc-gcc.s.orig Fri Apr 5 21:29:15 2002
|
||||
+++ osdll/DrvSystem_ppc-gcc.s Fri Apr 5 21:29:27 2002
|
||||
@@ -61,7 +61,7 @@
|
||||
mr SP,r3
|
||||
# gcc/gas breaks on this
|
||||
# bl .TWIN_InitStackEnd{PR}
|
||||
- bl TWIN_InitStackEnd
|
||||
+ bl TWIN_InitStackEnd@plt
|
||||
nop
|
||||
nop
|
||||
nop
|
13
emulators/twin/files/patch-tools+rc+cmdline.c
Normal file
13
emulators/twin/files/patch-tools+rc+cmdline.c
Normal file
@ -0,0 +1,13 @@
|
||||
$NetBSD: patch-af,v 1.1.1.1 2001/05/15 09:46:37 agc Exp $
|
||||
|
||||
--- tools/rc/cmdline.c.orig Wed Aug 11 01:34:18 1999
|
||||
+++ tools/rc/cmdline.c Sun May 13 10:09:31 2001
|
||||
@@ -61,7 +61,7 @@
|
||||
extern char cpp_module_name[];
|
||||
extern char libentry_name[];
|
||||
extern char tbl_name[];
|
||||
-static char *system_include_path[1] = { STDINC };
|
||||
+static char *system_include_path[2] = { STDINC, __INCPATH__ };
|
||||
static int n_system_include_path = sizeof(system_include_path) /
|
||||
sizeof(*system_include_path);
|
||||
static char **user_include_path = NULL;
|
13
emulators/twin/files/patch-windows+Makefile.in
Normal file
13
emulators/twin/files/patch-windows+Makefile.in
Normal file
@ -0,0 +1,13 @@
|
||||
$NetBSD: patch-aj,v 1.1 2003/03/08 03:15:52 jmc Exp $
|
||||
|
||||
--- windows/Makefile.in.orig Fri Apr 5 21:33:13 2002
|
||||
+++ windows/Makefile.in Fri Apr 5 20:46:17 2002
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
target = $(LIBTWIN)
|
||||
|
||||
-LIBTWIN_LDFLAGS = @LIBTWIN_LDFLAGS@
|
||||
+LIBTWIN_LDFLAGS = @LIBTWIN_LDFLAGS@ ${LDFLAGS}
|
||||
|
||||
############################################################################
|
||||
#
|
Loading…
Reference in New Issue
Block a user