diff options
author | Brad Smith <brad@comstyle.com> | 2021-01-11 09:02:36 +1100 |
---|---|---|
committer | Daniel Black <daniel@mariadb.org> | 2021-01-11 09:06:29 +1100 |
commit | 1015cbde5985e7e89c887ab30ce7c772671194c5 (patch) | |
tree | 70c6623b99d4e52880f7fbbc8f92cafd565ea301 | |
parent | 49b87749513fd931eb874d4559b34ed6aeec8f05 (diff) | |
download | mariadb-git-1015cbde5985e7e89c887ab30ce7c772671194c5.tar.gz |
MDEV-24556: Build does not recognize powerpc64 (OpenBSD)
Reviewer: Daniel Black
-rw-r--r-- | mysys/CMakeLists.txt | 2 | ||||
-rw-r--r-- | storage/rocksdb/build_rocksdb.cmake | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/mysys/CMakeLists.txt b/mysys/CMakeLists.txt index 6a3a1efaeca..e15257a9572 100644 --- a/mysys/CMakeLists.txt +++ b/mysys/CMakeLists.txt @@ -115,7 +115,7 @@ ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|AARCH64") COMPILE_FLAGS "-march=armv8-a+crc+crypto") ENDIF() ENDIF() -ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64") +ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64|powerpc64") SET(MYSYS_SOURCES ${MYSYS_SOURCES} crc32/crc32_ppc64.c crc32/crc32c_ppc.c) SET_SOURCE_FILES_PROPERTIES(crc32/crc32_ppc64.c crc32/crc32c_ppc.c PROPERTIES COMPILE_FLAGS "${COMPILE_FLAGS} -maltivec -mvsx -mpower8-vector -mcrypto -mpower8-vector") diff --git a/storage/rocksdb/build_rocksdb.cmake b/storage/rocksdb/build_rocksdb.cmake index 5f1566edcf5..06f136c9b9a 100644 --- a/storage/rocksdb/build_rocksdb.cmake +++ b/storage/rocksdb/build_rocksdb.cmake @@ -109,8 +109,8 @@ if(NOT WIN32) endif() include(CheckCCompilerFlag) -# ppc64 or ppc64le -if(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64") +# ppc64 or ppc64le or powerpc64 (BSD) +if(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64|powerpc64") CHECK_C_COMPILER_FLAG("-maltivec" HAS_ALTIVEC) if(HAS_ALTIVEC) message(STATUS " HAS_ALTIVEC yes") |