databases/xtrabackup: fix build on GCC architectures

Patch this port similarly to other mysql/mariadb/percona ports - make GCC a valid compiler.

PR:		239310
Approved by:	aleks@twindb.com (maintainer timeout), linimon (mentor)
This commit is contained in:
Piotr Kubaj 2019-08-24 12:40:26 +00:00
parent aa95db6e8b
commit bd2ffebe9e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=509721

View file

@ -0,0 +1,15 @@
--- cmake/os/FreeBSD.cmake.orig 2019-07-19 15:13:48 UTC
+++ cmake/os/FreeBSD.cmake
@@ -30,6 +30,12 @@ IF(NOT FORCE_UNSUPPORTED_COMPILER)
IF(NOT HAVE_SUPPORTED_CLANG_VERSION)
MESSAGE(FATAL_ERROR "Clang 3.3 or newer is required!")
ENDIF()
+ ELSEIF(CMAKE_COMPILER_IS_GNUCC)
+ EXECUTE_PROCESS(COMMAND ${CMAKE_C_COMPILER} -dumpversion
+ OUTPUT_VARIABLE GCC_VERSION)
+ IF(GCC_VERSION VERSION_LESS 4.4)
+ MESSAGE(FATAL_ERROR "GCC 4.4 or newer is required!")
+ ENDIF()
ELSE()
MESSAGE(FATAL_ERROR "Unsupported compiler!")
ENDIF()