mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 07:11:29 +02:00
cmake: don't link ICU/iconv on cross-builds (vestigial without system boost)
feather.exe links ${ICU_LIBRARIES}, set by the monero submodule's static-build branch assuming depends ships ICU + libiconv. Feather's depends doesn't, and its depends boost is --without-icu, so nothing references ICU/iconv symbols — the mingw link failed on missing -licu*/-liconv. Clear ICU_LIBRARIES when CMAKE_CROSSCOMPILING; native (system boost, built with ICU) unchanged.
This commit is contained in:
@@ -274,6 +274,15 @@ if (DEPENDS)
|
|||||||
target_link_directories(feather PRIVATE "${LIB_DIR}")
|
target_link_directories(feather PRIVATE "${LIB_DIR}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# ICU_LIBRARIES is set by the monero/wownero submodule (its STATIC-build branch, ~CMakeLists.txt:1131:
|
||||||
|
# `set(ICU_LIBRARIES icuio ... iconv)`) assuming depends ships ICU + libiconv — true for monero's own
|
||||||
|
# depends, NOT feather's. And our cross-build's depends boost is --without-icu, so nothing references
|
||||||
|
# ICU/iconv symbols: the link is vestigial. Drop it when cross-compiling (else the mingw link fails on
|
||||||
|
# missing -licu*/-liconv). Native builds keep it — their system boost IS built against ICU.
|
||||||
|
if(CMAKE_CROSSCOMPILING)
|
||||||
|
set(ICU_LIBRARIES "")
|
||||||
|
endif()
|
||||||
|
|
||||||
target_link_libraries(feather PRIVATE
|
target_link_libraries(feather PRIVATE
|
||||||
wallet_api
|
wallet_api
|
||||||
epee
|
epee
|
||||||
|
|||||||
Reference in New Issue
Block a user