FreeBSD Bugzilla – Attachment 246694 Details for
Bug 275457
lang/ldc: Build ldc compiler independent of gcc11
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Patch to make ldc independent of gcc11
patch-lang_ldc_files_patch-cmake_Modules_ExtractDMDSystemLinker.cmake (text/plain), 2.07 KB, created by
Curtis Hamilton
on 2023-11-30 17:56:43 UTC
(
hide
)
Description:
Patch to make ldc independent of gcc11
Filename:
MIME Type:
Creator:
Curtis Hamilton
Created:
2023-11-30 17:56:43 UTC
Size:
2.07 KB
patch
obsolete
>--- lang/ldc/files/patch-cmake_Modules_ExtractDMDSystemLinker.cmake 1969-12-31 19:00:00.000000000 -0500 >+++ lang/ldc/files/patch-cmake_Modules_ExtractDMDSystemLinker.cmake 2023-11-11 12:20:21.639619000 -0500 >@@ -0,0 +1,49 @@ >+--- cmake/Modules/ExtractDMDSystemLinker.cmake 2023-03-12 10:37:15.000000000 -0400 >++++ cmake/Modules/ExtractDMDSystemLinker.cmake 2023-11-10 13:14:27.976929000 -0500 >+@@ -66,12 +66,45 @@ >+ >+ if("${D_COMPILER_ID}" STREQUAL "GDMD") >+ # Filter linker arguments for those we know can be safely reused >++ set(STATIC OFF) >+ set(D_LINKER_ARGS) >+ foreach(arg ${linker_line}) >+- if("${arg}" MATCHES ^-L.*|^-l.*|^-B.*) >++ if("${arg}" MATCHES ^-L.*|^-l.*) >+ list(APPEND D_LINKER_ARGS "${arg}") >++ if(STATIC) >++ if("${arg}" STREQUAL -lgphobos) >++ set(STATIC_GPHOBOS ON) >++ endif() >++ endif() >++ elseif("${arg}" MATCHES ^-B.*) >++ list(APPEND D_LINKER_ARGS "-Wl,${arg}") >++ if("${arg}" STREQUAL -Bstatic) >++ set(STATIC ON) >++ elseif("${arg}" STREQUAL -Bdynamic) >++ set(STATIC OFF) >++ endif() >+ endif() >+ endforeach() >++ if(STATIC_GPHOBOS) >++ execute_process( >++ COMMAND "${D_COMPILER}" -q,-print-file-name=libgdruntime.a >++ COMMAND "head" -n1 >++ COMMAND "xargs" nm -gC >++ COMMAND "grep" >++ -e _d_allocmemory >++ -e _d_newclass >++ -e _d_newitemiT >++ -e _d_newitemT >++ COMMAND "cut" -d " " -f 2 >++ COMMAND "sort" >++ COMMAND "uniq" >++ OUTPUT_VARIABLE LIB_GDRUNTIME_LIFETIME_SYMBOL_TYPES >++ ERROR_QUIET) >++ string(STRIP ${LIB_GDRUNTIME_LIFETIME_SYMBOL_TYPES}, LIB_GDRUNTIME_LIFETIME_SYMBOL_TYPES) >++ if(NOT LIB_GDRUNTIME_LIFETIME_SYMBOL_TYPES STREQUAL W) >++ list(APPEND D_LINKER_ARGS "-Wl,--allow-multiple-definition") >++ endif() >++ endif() >+ else() >+ set(D_LINKER_ARGS ${linker_line}) >+ endif()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 275457
: 246694