pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/51899: Fix for building qemu on Darwin



>Number:         51899
>Category:       pkg
>Synopsis:       Fix for building qemu on Darwin
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 20 04:00:00 +0000 2017
>Originator:     Jonathan Schleifer
>Release:        HEAD
>Organization:
>Environment:
>Description:
qemu seems to use the system's curses.h, even when building NetBSD's ncursesw. However, for wide support, -D_XOPEN_SOURCE_EXTENDED is needed by Darwin's curses.h.
>How-To-Repeat:

>Fix:
diff --git a/emulators/qemu/Makefile b/emulators/qemu/Makefile
index b3a12c4e064..292e1154b62 100644
--- a/emulators/qemu/Makefile
+++ b/emulators/qemu/Makefile
@@ -45,6 +45,8 @@ CONFIGURE_ARGS+=	--enable-curses
 CONFIGURE_ARGS+=	--disable-opengl
 CONFIGURE_ENV+=		mansuffix=/${PKGMANDIR}
 
+CONFIGURE_ARGS.Darwin+=	--extra-cflags=-D_XOPEN_SOURCE_EXTENDED
+
 .if defined(PKGSRC_USE_SSP)
 # do not add flags to everything
 PKGSRC_USE_SSP=		no



Home | Main Index | Thread Index | Old Index