aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/ldc2/files/ldc2-1.15.0-link-defaultlib-shared.patch')
-rw-r--r--dev-lang/ldc2/files/ldc2-1.15.0-link-defaultlib-shared.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-lang/ldc2/files/ldc2-1.15.0-link-defaultlib-shared.patch b/dev-lang/ldc2/files/ldc2-1.15.0-link-defaultlib-shared.patch
new file mode 100644
index 0000000..360634c
--- /dev/null
+++ b/dev-lang/ldc2/files/ldc2-1.15.0-link-defaultlib-shared.patch
@@ -0,0 +1,11 @@
+--- a/runtime/CMakeLists.txt
++++ b/runtime/CMakeLists.txt
+@@ -252,7 +252,7 @@
+
+ # Only have either shared or static libs?
+ # Then explicitly default to linking against them via default LDC switch.
+-if(${BUILD_SHARED_LIBS} STREQUAL "ON")
++if(NOT ${BUILD_SHARED_LIBS} STREQUAL "OFF")
+ set(ADDITIONAL_DEFAULT_LDC_SWITCHES "${ADDITIONAL_DEFAULT_LDC_SWITCHES}\n \"-link-defaultlib-shared\",")
+ elseif(${BUILD_SHARED_LIBS} STREQUAL "OFF")
+ set(ADDITIONAL_DEFAULT_LDC_SWITCHES "${ADDITIONAL_DEFAULT_LDC_SWITCHES}\n \"-link-defaultlib-shared=false\",")