clucene-2.3.3.4-gcc6.patch 1.1 KB

12345678910111213141516171819202122232425262728
  1. From b5a1b3488a72abd250cbd5d4dfbeac3e3739c237 Mon Sep 17 00:00:00 2001
  2. From: Hodorgasm <nsane457@gmail.com>
  3. Date: Thu, 12 May 2016 20:38:12 -0400
  4. Subject: [PATCH] Support GCC-6
  5. Updated 2017-06-18 by mgorny to allow *any* gcc version so that
  6. we do not have to update the patch every second month.
  7. ---
  8. src/shared/cmake/MacroCheckGccVisibility.cmake | 2 +-
  9. 1 file changed, 1 insertion(+), 1 deletion(-)
  10. diff --git a/src/shared/cmake/MacroCheckGccVisibility.cmake b/src/shared/cmake/MacroCheckGccVisibility.cmake
  11. index 2022aa3..020f913 100644
  12. --- a/src/shared/cmake/MacroCheckGccVisibility.cmake
  13. +++ b/src/shared/cmake/MacroCheckGccVisibility.cmake
  14. @@ -15,7 +15,7 @@ macro(MACRO_CHECK_GCC_VISIBILITY GccVisibility)
  15. # get the gcc version
  16. exec_program(${CMAKE_C_COMPILER} ARGS --version OUTPUT_VARIABLE _gcc_version_info)
  17. - string (REGEX MATCH "[345]\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_version_info}")
  18. + string (REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" _gcc_version "${_gcc_version_info}")
  19. if (NOT _gcc_version)
  20. # clang reports: clang version 1.1 (trunk 95754)
  21. --
  22. 2.8.2