diff --git a/community/ldc/01-conf.patch b/community/ldc/01-conf.patch
index ad01f92d5805efa6fd4b7fa25ee8beb62912bcf5..14a5ca5fd0078da93e1c220d6f1ee4de468c0e96 100644
--- a/community/ldc/01-conf.patch
+++ b/community/ldc/01-conf.patch
@@ -5,7 +5,7 @@ diff -urp a/ldc2.conf.in b/ldc2.conf.in
  {
      // default switches injected before all explicit command-line switches
      switches = [
-+	"-linker=bfd",
++	"-linker=bfd","-link-defaultlib-shared",
          "-defaultlib=druntime-ldc",@ADDITIONAL_DEFAULT_LDC_SWITCHES@
      ];
      // default switches appended after all explicit command-line switches
@@ -16,7 +16,7 @@ diff -urp a/ldc2_install.conf.in b/ldc2_install.conf.in
  {
      // default switches injected before all explicit command-line switches
      switches = [
-+       "-linker=bfd",
++       "-linker=bfd","-link-defaultlib-shared",
          "-defaultlib=phobos2-ldc,druntime-ldc",@ADDITIONAL_DEFAULT_LDC_SWITCHES@
      ];
      // default switches appended after all explicit command-line switches
@@ -27,7 +27,7 @@ diff -urp a/ldc2_phobos.conf.in b/ldc2_phobos.conf.in
  {
      // default switches injected before all explicit command-line switches
      switches = [
-+	"-linker=bfd",
++	"-linker=bfd","-link-defaultlib-shared",
          "-defaultlib=phobos2-ldc,druntime-ldc",@ADDITIONAL_DEFAULT_LDC_SWITCHES@
      ];
      // default switches appended after all explicit command-line switches
diff --git a/community/ldc/APKBUILD b/community/ldc/APKBUILD
index 090e4f8b3a2116b54685036f08f56568c334bc29..ec9cc92d09c88f54d7154652adbd7308cb7227fb 100644
--- a/community/ldc/APKBUILD
+++ b/community/ldc/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Mathias LANG <pro.mathias.lang@gmail.com>
 pkgname=ldc
 pkgver=1.20.1
-pkgrel=1
+pkgrel=2
 pkgdesc="The LLVM-based D Compiler"
 url="https://github.com/ldc-developers/ldc"
 # LDC does not support host compiling on most of the architecture Alpine supports
@@ -96,4 +96,4 @@ static() {
 }
 
 sha512sums="bb699999a69de1773a10998c653b5a1b0bce30e39cfcee0e19b036378b28519b3118ac369b341cfd305a8a9bd904564ffffe83f720a62ab4f2c1942c2e26bb53  ldc-1.20.1-src.tar.gz
-eb86e4be0ecf72aaabbd5608c8056bb9cede035895e766330b6d14f14c06dc513fcecc1b6e56ab6fc9fc26c220a689cc8b1394a30a319189c414f1e067c1d983  01-conf.patch"
+1a8ec8d75a5d01a1bc41e4b641e0663344fcbc44f3f10287f8cc716095faeadfa3dfc4ce7d84d72522151454e54d95e9f623ec5862e98e837d8fe44057307ce9  01-conf.patch"