aboutsummaryrefslogtreecommitdiff
path: root/databases/rocksdb/files/patch-aarch64
diff options
context:
space:
mode:
Diffstat (limited to 'databases/rocksdb/files/patch-aarch64')
-rw-r--r--databases/rocksdb/files/patch-aarch6427
1 files changed, 27 insertions, 0 deletions
diff --git a/databases/rocksdb/files/patch-aarch64 b/databases/rocksdb/files/patch-aarch64
new file mode 100644
index 000000000000..5eeecf75c7df
--- /dev/null
+++ b/databases/rocksdb/files/patch-aarch64
@@ -0,0 +1,27 @@
+--- CMakeLists.txt.orig 2021-06-25 21:15:04 UTC
++++ CMakeLists.txt
+@@ -612,6 +612,11 @@ if(HAVE_AUXV_GETAUXVAL)
+ add_definitions(-DROCKSDB_AUXV_GETAUXVAL_PRESENT)
+ endif()
+
++check_cxx_symbol_exists(elf_aux_info sys/auxv.h HAVE_ELF_AUX_INFO)
++if(HAVE_ELF_AUX_INFO)
++ add_definitions(-DROCKSDB_AUXV_GETAUXVAL_PRESENT)
++endif()
++
+ include_directories(${PROJECT_SOURCE_DIR})
+ include_directories(${PROJECT_SOURCE_DIR}/include)
+ if(WITH_FOLLY_DISTRIBUTED_MUTEX)
+--- build_tools/build_detect_platform.orig 2021-06-25 21:15:04 UTC
++++ build_tools/build_detect_platform
+@@ -599,8 +599,8 @@ EOF
+ fi
+
+ # TODO(tec): Fix -Wshorten-64-to-32 errors on FreeBSD and enable the warning.
+-# -Wshorten-64-to-32 breaks compilation on FreeBSD i386
+-if ! [ "$TARGET_OS" = FreeBSD -a "$TARGET_ARCHITECTURE" = i386 ]; then
++# -Wshorten-64-to-32 breaks compilation on FreeBSD i386 and aarch64
++if ! { [ "$TARGET_OS" = FreeBSD ] && [ "$TARGET_ARCHITECTURE" = i386 -o "$TARGET_ARCHITECTURE" = "arm64" ]; }; then
+ # Test whether -Wshorten-64-to-32 is available
+ $CXX $PLATFORM_CXXFLAGS -x c++ - -o /dev/null -Wshorten-64-to-32 2>/dev/null <<EOF
+ int main() {}