summaryrefslogtreecommitdiff
path: root/sys/arch/aviion
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-10-08 21:49:41 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-10-08 21:49:41 +0000
commit205a3bfc68a1ce1815e63c6b20594f719c3f23b3 (patch)
tree5e26ae15c61b66f333374796a5a61d056ae94b99 /sys/arch/aviion
parent8203605f6090cfa20001478c9eb1f98fa4e3add8 (diff)
Try to be a bit more cross-compile friendly.
Diffstat (limited to 'sys/arch/aviion')
-rw-r--r--sys/arch/aviion/stand/a2coff/Makefile4
-rw-r--r--sys/arch/aviion/stand/a2coff/a2coff.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/aviion/stand/a2coff/Makefile b/sys/arch/aviion/stand/a2coff/Makefile
index ff24f946b21..8ea7d1bdc17 100644
--- a/sys/arch/aviion/stand/a2coff/Makefile
+++ b/sys/arch/aviion/stand/a2coff/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.2 2012/08/21 14:46:18 pascal Exp $
+# $OpenBSD: Makefile,v 1.3 2013/10/08 21:49:40 miod Exp $
MAN= a2coff.8
MANSUBDIR=aviion
@@ -6,8 +6,10 @@ MANSUBDIR=aviion
PROG= a2coff
BINDIR=/usr/mdec
NOPIE=
+HOSTCFLAGS?= -O2 ${PIPE} ${DEBUG}
.else
NOPROG=
.endif
.include <bsd.prog.mk>
+CFLAGS= ${HOSTCFLAGS}
diff --git a/sys/arch/aviion/stand/a2coff/a2coff.c b/sys/arch/aviion/stand/a2coff/a2coff.c
index a2066d10cbb..46cecae46ea 100644
--- a/sys/arch/aviion/stand/a2coff/a2coff.c
+++ b/sys/arch/aviion/stand/a2coff/a2coff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: a2coff.c,v 1.5 2013/09/21 21:00:02 miod Exp $ */
+/* $OpenBSD: a2coff.c,v 1.6 2013/10/08 21:49:40 miod Exp $ */
/*
* Copyright (c) 2006, 2013, Miodrag Vallat
*
@@ -47,6 +47,8 @@
#undef __LDPGSZ
#define __LDPGSZ 0x1000
#endif /* m88k */
+
+#define ELFSIZE 32
#include <sys/exec_elf.h>
#define ECOFF_ALIGN 0x200