Received: from eggs.gnu.org ([2001:4830:134:3::10]:44966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdLfj-0004PI-2Z for qemu-devel@nongnu.org; Wed, 01 Apr 2015 12:39:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdLfd-00008F-DD for qemu-devel@nongnu.org; Wed, 01 Apr 2015 12:39:19 -0400 Received: from mail-wg0-f52.google.com ([74.125.82.52]:36254) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdLfd-000086-7k for qemu-devel@nongnu.org; Wed, 01 Apr 2015 12:39:13 -0400 Received: by wgra20 with SMTP id a20so59521146wgr.3 for ; Wed, 01 Apr 2015 09:39:12 -0700 (PDT) From: Joseph Hindin Date: Wed, 1 Apr 2015 19:38:57 +0300 Message-Id: <1427906337-20805-2-git-send-email-jhindin@daynix.com> In-Reply-To: <1427906337-20805-1-git-send-email-jhindin@daynix.com> References: <1427906337-20805-1-git-send-email-jhindin@daynix.com> Subject: [Qemu-devel] [PATCH v2] qga: fitering out -fstack-protector-strong List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, pbonzini@redhat.com, Joseph Hindin , mdroth@linux.vnet.ibm.com configure script may add -fstack-protector-strong option instead of -fstack-protector-all, depending on availability ( see commit 63678e17c ). Both options have to by filtered out for qga-vss.dll, otherwise MinGW cross-compilation fails at linking stage. Signed-off-by: Joseph Hindin --- qga/vss-win32/Makefile.objs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qga/vss-win32/Makefile.objs b/qga/vss-win32/Makefile.objs index 6a69d50..7c96c6b 100644 --- a/qga/vss-win32/Makefile.objs +++ b/qga/vss-win32/Makefile.objs @@ -3,7 +3,7 @@ qga-vss-dll-obj-y += requester.o provider.o install.o obj-qga-vss-dll-obj-y = $(addprefix $(obj)/, $(qga-vss-dll-obj-y)) -$(obj-qga-vss-dll-obj-y): QEMU_CXXFLAGS = $(filter-out -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wold-style-declaration -Wold-style-definition -Wredundant-decls -fstack-protector-all, $(QEMU_CFLAGS)) -Wno-unknown-pragmas -Wno-delete-non-virtual-dtor +$(obj-qga-vss-dll-obj-y): QEMU_CXXFLAGS = $(filter-out -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wold-style-declaration -Wold-style-definition -Wredundant-decls -fstack-protector-all -fstack-protector-strong, $(QEMU_CFLAGS)) -Wno-unknown-pragmas -Wno-delete-non-virtual-dtor $(obj)/qga-vss.dll: LDFLAGS = -shared -Wl,--add-stdcall-alias,--enable-stdcall-fixup -lole32 -loleaut32 -lshlwapi -luuid -static $(obj)/qga-vss.dll: $(obj-qga-vss-dll-obj-y) $(SRC_PATH)/$(obj)/qga-vss.def -- 2.1.0