From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34013) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqYbo-0006Ze-BZ for qemu-devel@nongnu.org; Sat, 09 Sep 2017 01:47:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqYbn-0006fS-Bq for qemu-devel@nongnu.org; Sat, 09 Sep 2017 01:47:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34270) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dqYbn-0006ed-6U for qemu-devel@nongnu.org; Sat, 09 Sep 2017 01:47:11 -0400 From: Fam Zheng Date: Sat, 9 Sep 2017 13:46:05 +0800 Message-Id: <20170909054613.19148-30-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 29/37] buildsys: Move sdl 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-3-famz@redhat.com> Reviewed-by: Gerd Hoffmann Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Fam Zheng --- audio/Makefile.objs | 1 + configure | 2 +- ui/Makefile.objs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/audio/Makefile.objs b/audio/Makefile.objs index 481d1aa30e..c20695668f 100644 --- a/audio/Makefile.objs +++ b/audio/Makefile.objs @@ -11,3 +11,4 @@ common-obj-$(CONFIG_AUDIO_WIN_INT) +=3D audio_win_int.o common-obj-y +=3D wavcapture.o =20 sdlaudio.o-cflags :=3D $(SDL_CFLAGS) +sdlaudio.o-libs :=3D $(SDL_LIBS) diff --git a/configure b/configure index 8dca32900a..a9577bb952 100755 --- a/configure +++ b/configure @@ -2793,7 +2793,6 @@ EOF sdl_cflags=3D"$sdl_cflags $x11_cflags" sdl_libs=3D"$sdl_libs $x11_libs" fi - libs_softmmu=3D"$sdl_libs $libs_softmmu" fi =20 ########################################## @@ -5587,6 +5586,7 @@ if test "$sdl" =3D "yes" ; then echo "CONFIG_SDL=3Dy" >> $config_host_mak echo "CONFIG_SDLABI=3D$sdlabi" >> $config_host_mak echo "SDL_CFLAGS=3D$sdl_cflags" >> $config_host_mak + echo "SDL_LIBS=3D$sdl_libs" >> $config_host_mak fi if test "$cocoa" =3D "yes" ; then echo "CONFIG_COCOA=3Dy" >> $config_host_mak diff --git a/ui/Makefile.objs b/ui/Makefile.objs index 146a8ce062..b3e29e21f0 100644 --- a/ui/Makefile.objs +++ b/ui/Makefile.objs @@ -27,6 +27,7 @@ sdl.mo-objs +=3D sdl2-gl.o endif endif sdl.mo-cflags :=3D $(SDL_CFLAGS) +sdl.mo-libs :=3D $(SDL_LIBS) =20 ifeq ($(CONFIG_OPENGL),y) common-obj-y +=3D shader.o --=20 2.13.5