From efe7725b73187863ea9ae38ed0546924346f25d0 Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Sun, 6 Jun 2021 03:13:15 +0100 Subject: net-p2p/monero: add support for musl libc Package-Manager: Portage-3.0.18, Repoman-3.0.2 --- ...o-0.17.2.0-translations-use-host-compiler.patch | 31 +++++++++++++++------- 1 file changed, 22 insertions(+), 9 deletions(-) (limited to 'net-p2p/monero/files') diff --git a/net-p2p/monero/files/monero-0.17.2.0-translations-use-host-compiler.patch b/net-p2p/monero/files/monero-0.17.2.0-translations-use-host-compiler.patch index ac9d7da8..be4364df 100644 --- a/net-p2p/monero/files/monero-0.17.2.0-translations-use-host-compiler.patch +++ b/net-p2p/monero/files/monero-0.17.2.0-translations-use-host-compiler.patch @@ -1,4 +1,4 @@ -From ea1400129fa76ea66acc48e2a2f3ca1acb64711e Mon Sep 17 00:00:00 2001 +From 52f77ae211afe9e02717d1c47369d83cebe4ace3 Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Sat, 30 Nov 2019 02:09:14 +0000 Subject: [PATCH] translations: use host compiler @@ -7,24 +7,37 @@ Do not pass target compiler and compiler flags as generate_translations_header need to be created using host compiler and compiler flags --- - CMakeLists.txt | 7 ++++++- - 1 file changed, 6 insertions(+), 1 deletion(-) + CMakeLists.txt | 4 +++- + translations/CMakeLists.txt | 4 ++++ + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt -index 41f82e26c2ec..63c6f2d4f5fa 100644 +index 0c8d8dffb826..2889fd7f922f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -468,7 +468,12 @@ ExternalProject_Add(generate_translations_header +@@ -467,7 +467,9 @@ ExternalProject_Add(generate_translations_header SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/translations" BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/translations" STAMP_DIR ${LRELEASE_PATH} - CMAKE_ARGS -DLRELEASE_PATH=${LRELEASE_PATH} + CMAKE_ARGS -+ -DCMAKE_C_COMPILER=$ENV{BUILD_CC} -+ -DCMAKE_CXX_COMPILER=$ENV{BUILD_CXX} -+ -DCMAKE_C_FLAGS=$ENV{BUILD_CFLAGS} -+ -DCMAKE_CXX_FLAGS=$ENV{BUILD_CXXFLAGS} ++ -DCMAKE_TOOLCHAIN_FILE=${CMAKE_CURRENT_BINARY_DIR}/translations.cmake + -DLRELEASE_PATH=${LRELEASE_PATH} INSTALL_COMMAND cmake -E echo "") include_directories("${CMAKE_CURRENT_BINARY_DIR}/translations") add_subdirectory(external) +diff --git a/translations/CMakeLists.txt b/translations/CMakeLists.txt +index 0081746f2b9c..5309d84d742f 100644 +--- a/translations/CMakeLists.txt ++++ b/translations/CMakeLists.txt +@@ -28,6 +28,10 @@ + + cmake_minimum_required(VERSION 2.8.7) + ++# Ensure LDFLAGS for target are not propaged here since target are ++# meant for host ++UNSET(ENV{LDFLAGS}) ++ + project(translations) + + # when crosscompiling import the executable targets from a file -- cgit v1.2.3