mirror of
https://github.com/Neo-Desktop/WindowsXPKg
synced 2024-11-25 07:11:00 +02:00
Fix macOS compilation (Attempt 1)
This commit is contained in:
parent
b3f64e6330
commit
361a39e204
@ -45,6 +45,12 @@ else()
|
|||||||
set(OPENSSL_MSVC_STATIC_RT TRUE)
|
set(OPENSSL_MSVC_STATIC_RT TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# macOS does not support static build
|
||||||
|
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||||
|
set(OPENSSL_USE_STATIC_LIBS FALSE)
|
||||||
|
set(OPENSSL_MSVC_STATIC_RT FALSE)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(MUSL_STATIC AND NOT UMSKT_USE_SHARED_OPENSSL)
|
if(MUSL_STATIC AND NOT UMSKT_USE_SHARED_OPENSSL)
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++")
|
||||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-libgcc -static-libstdc++")
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-libgcc -static-libstdc++")
|
||||||
|
Loading…
Reference in New Issue
Block a user