quick-and-dirty fix for compilation error on aarch64

This commit is contained in:
Christian Ulrich 2020-11-17 22:31:04 +01:00
parent 9d5fb2cb4c
commit 8c1e0c7dcc
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,9 @@ stdenv.mkDerivation rec {
];
patchPhase = ''
sed -i 's|^ADD_EXECUTABLE(ptlsbench t/ptlsbench.c)$||g' CMakeLists.txt
sed -i 's|^SET_TARGET_PROPERTIES(ptlsbench PROPERTIES COMPILE_FLAGS "-DPTLS_MEMORY_DEBUG=1")$||g' CMakeLists.txt
sed -i 's|^TARGET_LINK_LIBRARIES(ptlsbench ''${PTLSBENCH_LIBS})$||g' CMakeLists.txt
sed -i 's|deps/picotest|${picotest}|g' CMakeLists.txt
sed -i 's|../deps/picotest|${picotest}|g' t/picotls.c
sed -i 's|../deps/picotest|${picotest}|g' t/minicrypto.c