openbsd-ports/emulators/kqemu/patches/patch-common_Makefile
todd b0b7750cb0 Import kqemu, submitted in the past, slightly tweaked by me
The QEMU Accelerator (KQEMU) is a driver allowing a user application to
run x86 code in a Virtual Machine (VM). The code can be either user or
kernel code, in 64, 32 or 16 bit protected mode. KQEMU is very similar
in essence to the VM86 Linux syscall call, but it adds some new concepts
to improve memory handling.

KQEMU is ported on many host OSes (currently Linux, Windows, FreeBSD,
Solaris). It can execute code from many guest OSes (e.g. Linux, Windows
2000/XP) even if the host CPU does not support hardware virtualization.
2008-01-19 23:55:19 +00:00

19 lines
521 B
Plaintext

$OpenBSD: patch-common_Makefile,v 1.1.1.1 2008/01/19 23:55:19 todd Exp $
--- common/Makefile.orig Tue Feb 6 22:02:00 2007
+++ common/Makefile Mon Nov 12 23:59:17 2007
@@ -41,7 +41,13 @@ LD=ld
endif
DEFINES=-D__KERNEL__
-INCLUDES=-nostdinc -iwithprefix include -I. -I..
+
+ifdef CONFIG_OPENBSD
+ INCLUDES=-I. -I..
+else
+ INCLUDES=-nostdinc -iwithprefix include -I. -I..
+endif
+
TOOLS_CFLAGS=-Wall -O2 -Werror -g
COMMON_CFLAGS=-Wall -O2 -fomit-frame-pointer -fno-strict-aliasing -Werror
ifeq ($(ARCH), x86_64)