diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 86c6f9da6..22e3f58df 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -80,7 +80,8 @@ cmake::cmake() // encode the MAKEFLAGS variable in a strange way. if(getenv("MAKEFLAGS")) { - putenv("MAKEFLAGS="); + static char makeflags[] = "MAKEFLAGS="; + putenv(makeflags); } m_Local = false;