summaryrefslogtreecommitdiff
path: root/emulators/qemu/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/qemu/patches/patch-ab')
-rw-r--r--emulators/qemu/patches/patch-ab28
1 files changed, 28 insertions, 0 deletions
diff --git a/emulators/qemu/patches/patch-ab b/emulators/qemu/patches/patch-ab
new file mode 100644
index 00000000000..9e4ede5168e
--- /dev/null
+++ b/emulators/qemu/patches/patch-ab
@@ -0,0 +1,28 @@
+$NetBSD: patch-ab,v 1.8 2007/12/30 17:12:44 joerg Exp $
+
+--- Makefile.target.orig 2007-02-05 23:01:54 +0000
++++ Makefile.target
+@@ -72,6 +72,10 @@ endif
+ # We require -O2 to avoid the stack setup prologue in EXIT_TB
+ OP_CFLAGS = -Wall -O2 -g -fno-strict-aliasing
+
++ifdef STACK_PROTECTOR_PRESENT
++OP_CFLAGS += -fno-stack-protector
++endif
++
+ ifeq ($(ARCH),i386)
+ HELPER_CFLAGS+=-fomit-frame-pointer
+ OP_CFLAGS+=-mpreferred-stack-boundary=2 -fomit-frame-pointer
+@@ -440,10 +444,12 @@ endif
+ ifndef CONFIG_DARWIN
+ ifndef CONFIG_WIN32
+ ifndef CONFIG_SOLARIS
++ifndef CONFIG_DRAGONFLY
+ VL_LIBS=-lutil -lrt
+ endif
+ endif
+ endif
++endif
+ ifdef TARGET_GPROF
+ vl.o: BASE_CFLAGS+=-p
+ VL_LDFLAGS+=-p