File 09_fix_lto.patch of Package ethereum-cpp

From: Adam Mizerski <adam@mizerski.pl>
Date: 2019-09-20 10:18:54
Upstream: no
Subject: fix lto

Index: ethereum-cpp-1.8.0/evmc/lib/instructions/CMakeLists.txt
===================================================================
--- ethereum-cpp-1.8.0.orig/evmc/lib/instructions/CMakeLists.txt
+++ ethereum-cpp-1.8.0/evmc/lib/instructions/CMakeLists.txt
@@ -13,6 +13,7 @@ add_library(evmc::instructions ALIAS ins
 set_target_properties(instructions PROPERTIES
     OUTPUT_NAME evmc-instructions
     POSITION_INDEPENDENT_CODE TRUE
+    COMPILE_FLAGS -ffat-lto-objects
 )
 target_include_directories(instructions PUBLIC
     $<BUILD_INTERFACE:${include_dir}>$<INSTALL_INTERFACE:include>
Index: ethereum-cpp-1.8.0/evmc/lib/loader/CMakeLists.txt
===================================================================
--- ethereum-cpp-1.8.0.orig/evmc/lib/loader/CMakeLists.txt
+++ ethereum-cpp-1.8.0/evmc/lib/loader/CMakeLists.txt
@@ -12,6 +12,7 @@ add_library(evmc::loader ALIAS loader)
 set_target_properties(loader PROPERTIES
     OUTPUT_NAME evmc-loader
     POSITION_INDEPENDENT_CODE TRUE
+    COMPILE_FLAGS -ffat-lto-objects
 )
 target_link_libraries(loader INTERFACE ${CMAKE_DL_LIBS} PUBLIC evmc::evmc)
openSUSE Build Service is sponsored by