diff --git a/reactos/tools/rbuild/backend/mingw/modulehandler.cpp b/reactos/tools/rbuild/backend/mingw/modulehandler.cpp index ebf601c878f..fff325def12 100644 --- a/reactos/tools/rbuild/backend/mingw/modulehandler.cpp +++ b/reactos/tools/rbuild/backend/mingw/modulehandler.cpp @@ -1550,10 +1550,14 @@ MingwModuleHandler::GenerateCleanObjectsAsYouGoCode () const void MingwModuleHandler::GenerateRunRsymCode () const { + fprintf ( fMakefile, + "ifneq ($(ROS_GENERATE_RSYM),no)\n" ); fprintf ( fMakefile, "\t$(ECHO_RSYM)\n" ); fprintf ( fMakefile, "\t$(Q)$(RSYM_TARGET) $@ $@\n\n" ); + fprintf ( fMakefile, + "endif\n" ); } void