From 0e36ca655cc1671b00cdebd27a05d37467ed29eb Mon Sep 17 00:00:00 2001 From: ReactOS Portable Systems Group Date: Sat, 11 Jul 2009 12:57:41 +0000 Subject: [PATCH] GAS should also receive the -march flag, not just the compiler... otherwise, gcc won't let you use things like "cmov" on x86, or anything beyond the armv4 instruction set on ARM svn path=/trunk/; revision=41877 --- reactos/tools/rbuild/backend/mingw/mingw.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/tools/rbuild/backend/mingw/mingw.cpp b/reactos/tools/rbuild/backend/mingw/mingw.cpp index a53c79a740c..c5f78d7b978 100644 --- a/reactos/tools/rbuild/backend/mingw/mingw.cpp +++ b/reactos/tools/rbuild/backend/mingw/mingw.cpp @@ -456,6 +456,7 @@ MingwBackend::GenerateGlobalVariables () const if ( ProjectNode.configuration.Compiler == GnuGcc ) { fprintf ( fMakefile, "ifneq ($(OARCH),)\n" ); + fprintf ( fMakefile, "PROJECT_ASFLAGS += -march=$(OARCH)\n" ); fprintf ( fMakefile, "PROJECT_CFLAGS += -march=$(OARCH)\n" ); fprintf ( fMakefile, "PROJECT_CXXFLAGS += -march=$(OARCH)\n" ); fprintf ( fMakefile, "endif\n" );