Browse Source

security/liboqs: fix build on powerpc64le

1. Add FreeBSD's name for 64-bit POWER little endian,
2. Don't use -Werror:
/wrkdirs/usr/ports/security/liboqs/work/liboqs-0.7.0/tests/ds_benchmark.h:142:45: error: implicit conversion from 'long' to 'double' may lose precision [-Werror,-Wimplicit-int-float-conversion]
        return (uint64_t)(time.tv_sec * 1e9 + time.tv_nsec);
main
Piotr Kubaj 2 months ago
parent
commit
830b84f555
  1. 10
      security/liboqs/files/patch-.CMake_compiler__opts.cmake
  2. 10
      security/liboqs/files/patch-CMakeLists.txt

10
security/liboqs/files/patch-.CMake_compiler__opts.cmake

@ -0,0 +1,10 @@
--- .CMake/compiler_opts.cmake.orig 2021-10-13 10:39:00 UTC
+++ .CMake/compiler_opts.cmake
@@ -51,7 +51,6 @@ if(CMAKE_C_COMPILER_ID MATCHES "Clang|GNU")
endif()
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
- add_compile_options(-Werror)
add_compile_options(-Wall)
add_compile_options(-Wextra)
add_compile_options(-Wpedantic)

10
security/liboqs/files/patch-CMakeLists.txt

@ -0,0 +1,10 @@
--- CMakeLists.txt.orig 2021-10-13 10:15:47 UTC
+++ CMakeLists.txt
@@ -54,6 +54,7 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "armel|armhf|arm
set(OQS_DIST_ARM32v7_BUILD ON)
endif()
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64le")
+elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "(ppc64le|powerpc64le)")
set(ARCH "ppc64le")
set(ARCH_PPC64LE ON)
if(${OQS_DIST_BUILD})
Loading…
Cancel
Save