[RBUILD]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Thu, 25 Mar 2010 19:55:28 +0000 (19:55 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Thu, 25 Mar 2010 19:55:28 +0000 (19:55 +0000)
instead of defining -fno-set-stack-executable and -fno-optimize-sibling-calls in gcc.mak file, do it in ReactOS-i386.rbuild

svn path=/trunk/; revision=46449

reactos/ReactOS-i386.rbuild
reactos/tools/rbuild/backend/mingw/compilers/gcc.mak

index 44e3511..5bfd52a 100644 (file)
@@ -28,6 +28,8 @@
                <compilerflag>-mpreferred-stack-boundary=2</compilerflag>
                <compilerflag compiler="midl">-m32 --win32</compilerflag>
                <compilerflag compiler="cc,cxx">-gstabs+</compilerflag>
+               <compilerflag compiler="cc,cxx">-fno-set-stack-executable</compilerflag>
+               <compilerflag compiler="cc,cxx">-fno-optimize-sibling-calls</compilerflag>
                <compilerflag compiler="as">-gstabs+</compilerflag>
        </group>
 
index 9769c6d..074d107 100644 (file)
@@ -9,14 +9,6 @@ CPPFLAG_UNICODE:=-DUNICODE -D_UNICODE
 
 # FIXME: disabled until RosBE stops sucking
 # BUILTIN_CPPFLAGS+= -nostdinc
-BUILTIN_CFLAGS+= -fno-optimize-sibling-calls
-BUILTIN_CXXFLAGS+= -fno-optimize-sibling-calls
-
-# Add -fno-set-stack-executable required for x86/MinGW
-ifneq (,$(filter $(ARCH),amd64 i386))
-       BUILTIN_CFLAGS+= -fno-set-stack-executable
-       BUILTIN_CXXFLAGS+= -fno-set-stack-executable
-endif
 
 #(module, source, dependencies, cflags, output)
 define RBUILD_DEPENDS