From: Gleb Balykov Date: Tue, 7 Dec 2021 09:12:31 +0000 (+0300) Subject: [Tizen] Hardcode LD_GNU for tizen X-Git-Tag: accepted/tizen/unified/20221103.165808~71 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=917963eebf17a69c9d3021553ce4f0de9e094589;p=platform%2Fupstream%2Fdotnet%2Fruntime.git [Tizen] Hardcode LD_GNU for tizen --- diff --git a/eng/native/configuretools.cmake b/eng/native/configuretools.cmake index 136cd67..dabfd22 100644 --- a/eng/native/configuretools.cmake +++ b/eng/native/configuretools.cmake @@ -64,19 +64,20 @@ if(NOT WIN32 AND NOT CLR_CMAKE_TARGET_BROWSER) endif() if (NOT CLR_CMAKE_HOST_WIN32) + set(LD_GNU 1) # detect linker - separate_arguments(ldVersion UNIX_COMMAND "${CMAKE_C_COMPILER} ${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version") - execute_process(COMMAND ${ldVersion} - ERROR_QUIET - OUTPUT_VARIABLE ldVersionOutput) + #separate_arguments(ldVersion UNIX_COMMAND "${CMAKE_C_COMPILER} ${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version") + #execute_process(COMMAND ${ldVersion} + # ERROR_QUIET + # OUTPUT_VARIABLE ldVersionOutput) - if("${ldVersionOutput}" MATCHES "LLD") - set(LD_LLVM 1) - elseif("${ldVersionOutput}" MATCHES "GNU ld" OR "${ldVersionOutput}" MATCHES "GNU gold" OR "${ldVersionOutput}" MATCHES "GNU linkers") - set(LD_GNU 1) - elseif("${ldVersionOutput}" MATCHES "Solaris Link") - set(LD_SOLARIS 1) - else(CLR_CMAKE_HOST_OSX OR CLR_CMAKE_HOST_MACCATALYST) - set(LD_OSX 1) - endif() + #if("${ldVersionOutput}" MATCHES "LLD") + # set(LD_LLVM 1) + #elseif("${ldVersionOutput}" MATCHES "GNU ld" OR "${ldVersionOutput}" MATCHES "GNU gold" OR "${ldVersionOutput}" MATCHES "GNU linkers") + # set(LD_GNU 1) + #elseif("${ldVersionOutput}" MATCHES "Solaris Link") + # set(LD_SOLARIS 1) + #else(CLR_CMAKE_HOST_OSX OR CLR_CMAKE_HOST_MACCATALYST) + # set(LD_OSX 1) + #endif() endif()