Hi,

This adds wxneeded to qemu to fix a mprotect W^X violation.  Make
fake needs msgfmt so I added a build dependency to gettext-tools.

ok?

bluhm

Index: emulators/qemu/Makefile
===================================================================
RCS file: /data/mirror/openbsd/cvs/ports/emulators/qemu/Makefile,v
retrieving revision 1.148
diff -u -p -r1.148 Makefile
--- emulators/qemu/Makefile     13 May 2016 07:20:46 -0000      1.148
+++ emulators/qemu/Makefile     12 Aug 2016 18:30:54 -0000
@@ -5,6 +5,7 @@ ONLY_FOR_ARCHS= amd64 i386 powerpc sparc
 COMMENT=       multi system emulator
 
 DISTNAME=      qemu-2.6.0
+REVISION=      1
 CATEGORIES=    emulators
 MASTER_SITES=  http://wiki.qemu.org/download/
 EXTRACT_SUFX=  .tar.bz2
@@ -31,7 +32,8 @@ MODULES=      lang/python \
 MODGCC4_ARCHS= *
 MODGCC4_LANGS= c++
 
-BUILD_DEPENDS= textproc/texi2html
+BUILD_DEPENDS= devel/gettext-tools \
+               textproc/texi2html
 LIB_DEPENDS=   archivers/bzip2 \
                archivers/lzo2 \
                devel/dtc \
@@ -57,7 +59,7 @@ MAKE_ENV=     V=1
 FAKE_FLAGS=    qemu_confdir=${PREFIX}/share/examples/qemu
 
 EXTRA_CFLAGS=  -I${LOCALBASE}/include -I${X11BASE}/include
-EXTRA_LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib
+EXTRA_LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib -Wl,-z,wxneeded
 
 # until the system headers are fixed properly.
 EXTRA_CFLAGS+= -Wno-redundant-decls

Reply via email to