diff --git a/reactos/tools/rbuild/backend/mingw/modulehandler.cpp b/reactos/tools/rbuild/backend/mingw/modulehandler.cpp index 2c0b58e61d4..34b8554a1a5 100644 --- a/reactos/tools/rbuild/backend/mingw/modulehandler.cpp +++ b/reactos/tools/rbuild/backend/mingw/modulehandler.cpp @@ -1937,7 +1937,8 @@ MingwModuleHandler::GenerateOtherMacros () fprintf ( fMakefile, - "%s_LFLAGS += $(PROJECT_LFLAGS) -g\n", + "%s_LFLAGS := $(PROJECT_LFLAGS) -g $(%s_LFLAGS)\n", + module.name.c_str (), module.name.c_str () ); } else