message: a fix for open issue 4772
diff: @@ -248,7 +248,9 @@ endif()
  # Extra link libs if the user selects building static libs:
  if(NOT BUILD_SHARED_LIBS AND CMAKE_COMPILER_IS_GNUCXX AND NOT ANDROID)
  # Android does not need these settings because they are already set by toolchain file
  + if(NOT MINGW)
  set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} stdc++)
  + endif()
  set(OPENCV_EXTRA_FLAGS "-fPIC ${OPENCV_EXTRA_FLAGS}")
  endif()
  