Received: from eggs.gnu.org ([2001:4830:134:3::10]:34105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqYbt-0006fR-RB for qemu-devel@nongnu.org; Sat, 09 Sep 2017 01:47:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqYbt-0006lK-32 for qemu-devel@nongnu.org; Sat, 09 Sep 2017 01:47:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34320) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dqYbs-0006kF-Tq for qemu-devel@nongnu.org; Sat, 09 Sep 2017 01:47:17 -0400 From: Fam Zheng Date: Sat, 9 Sep 2017 13:46:08 +0800 Message-Id: <20170909054613.19148-33-famz@redhat.com> In-Reply-To: <20170909054613.19148-1-famz@redhat.com> References: <20170909054613.19148-1-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL v2 32/37] buildsys: Move curese cflags/libs to per object List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell Signed-off-by: Fam Zheng Message-Id: <20170907082918.7299-6-famz@redhat.com> Reviewed-by: Gerd Hoffmann Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Fam Zheng --- configure | 6 ++++-- ui/Makefile.objs | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 5c15e74310..88eafe8a10 100755 --- a/configure +++ b/configure @@ -3134,8 +3134,8 @@ EOF unset IFS if compile_prog "$curses_inc" "$curses_lib" ; then curses_found=3Dyes - QEMU_CFLAGS=3D"$curses_inc $QEMU_CFLAGS" - libs_softmmu=3D"$curses_lib $libs_softmmu" + curses_cflags=3D"$curses_inc $curses_cflags" + curses_libs=3D"$curses_lib $curses_libs" break fi done @@ -5600,6 +5600,8 @@ if test "$cocoa" =3D "yes" ; then fi if test "$curses" =3D "yes" ; then echo "CONFIG_CURSES=3Dy" >> $config_host_mak + echo "CURSES_CFLAGS=3D$curses_cflags" >> $config_host_mak + echo "CURSES_LIBS=3D$curses_libs" >> $config_host_mak fi if test "$pipe2" =3D "yes" ; then echo "CONFIG_PIPE2=3Dy" >> $config_host_mak diff --git a/ui/Makefile.objs b/ui/Makefile.objs index a0b3c15a28..e3403b698b 100644 --- a/ui/Makefile.objs +++ b/ui/Makefile.objs @@ -57,3 +57,6 @@ gtk-egl.o-libs +=3D $(OPENGL_LIBS) shader.o-libs +=3D $(OPENGL_LIBS) console-gl.o-libs +=3D $(OPENGL_LIBS) egl-helpers.o-libs +=3D $(OPENGL_LIBS) + +curses.o-cflags :=3D $(CURSES_CFLAGS) +curses.o-libs :=3D $(CURSES_LIBS) --=20 2.13.5