mirror of https://github.com/mamba-org/mamba.git
Fixed micromamba static build after cctools and ld64 upgrade on conda… (#3436)
Fixed micromamba static build after cctools and ld64 upgrade on conda-forge
This commit is contained in:
parent
c4a6e78a78
commit
f8bb11c853
|
@ -526,7 +526,7 @@ macro(libmamba_create_target target_name linkage output_name)
|
|||
|
||||
if(APPLE)
|
||||
set(MAMBA_FORCE_DYNAMIC_LIBS resolv c++abi)
|
||||
target_link_options(${target_name} PRIVATE -static-libstdc++)
|
||||
target_link_options(${target_name} PRIVATE -nostdlib++)
|
||||
elseif(UNIX)
|
||||
set(MAMBA_FORCE_DYNAMIC_LIBS rt dl resolv)
|
||||
target_link_options(${target_name} PUBLIC -static-libstdc++ -static-libgcc)
|
||||
|
|
|
@ -79,6 +79,9 @@ macro(mambaexe_create_target target_name linkage output_name)
|
|||
find_package(libmamba REQUIRED)
|
||||
endif()
|
||||
target_link_libraries(${target_name} PRIVATE mamba::libmamba-static)
|
||||
if(APPLE)
|
||||
target_link_options(${target_name} PRIVATE -nostdlib++)
|
||||
endif()
|
||||
# Dynamic build
|
||||
# =============
|
||||
else()
|
||||
|
|
Loading…
Reference in New Issue