230e3bcbdd
- Edit 01_shared_lib.patch and implement the SUSE shlib packaging policy. cc @dimstar OBS-URL: https://build.opensuse.org/request/show/870577 OBS-URL: https://build.opensuse.org/package/show/network:cryptocurrencies/libff?expand=0&rev=4
53 lines
1.2 KiB
Diff
53 lines
1.2 KiB
Diff
From: Adam Mizerski <adam@mizerski.pl>
|
|
Date: 2019-02-12 20:48:31
|
|
Upstream: no
|
|
Subject: build as shared library
|
|
|
|
---
|
|
libff/CMakeLists.txt | 12 ++++++++++--
|
|
1 file changed, 10 insertions(+), 2 deletions(-)
|
|
|
|
Index: libff-1.0.0/libff/CMakeLists.txt
|
|
===================================================================
|
|
--- libff-1.0.0.orig/libff/CMakeLists.txt
|
|
+++ libff-1.0.0/libff/CMakeLists.txt
|
|
@@ -1,6 +1,6 @@
|
|
add_library(
|
|
ff
|
|
- STATIC
|
|
+ SHARED
|
|
|
|
algebra/curves/alt_bn128/alt_bn128_g1.cpp
|
|
algebra/curves/alt_bn128/alt_bn128_g2.cpp
|
|
@@ -27,6 +27,7 @@ add_library(
|
|
common/profiling.cpp
|
|
common/utils.cpp
|
|
)
|
|
+set_target_properties(ff PROPERTIES OUTPUT_NAME ff-${PACKAGE_VERSION})
|
|
target_link_libraries(
|
|
ff
|
|
|
|
@@ -48,7 +49,7 @@ install(
|
|
)
|
|
|
|
install(
|
|
- TARGETS ff DESTINATION lib
|
|
+ TARGETS ff DESTINATION lib${LIB_SUFFIX}
|
|
)
|
|
|
|
# Tests
|
|
@@ -102,6 +103,13 @@ if ("${IS_LIBFF_PARENT}")
|
|
NAME algebra_fields_test
|
|
COMMAND algebra_fields_test
|
|
)
|
|
+ set_tests_properties(
|
|
+ algebra_bilinearity_test
|
|
+ algebra_groups_test
|
|
+ algebra_fields_test
|
|
+ PROPERTIES
|
|
+ ENVIRONMENT LD_LIBRARY_PATH=.
|
|
+ )
|
|
|
|
add_dependencies(check algebra_bilinearity_test)
|
|
add_dependencies(check algebra_groups_test)
|