aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--community/ldc/APKBUILD2
1 files changed, 2 insertions, 0 deletions
diff --git a/community/ldc/APKBUILD b/community/ldc/APKBUILD
index 074327b755..3b65f91d3f 100644
--- a/community/ldc/APKBUILD
+++ b/community/ldc/APKBUILD
@@ -40,6 +40,7 @@ build() {
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
-DD_COMPILER='gdmd' \
+ -DLLVM_ROOT_DIR="/usr/lib/llvm11" \
-DADDITIONAL_DEFAULT_LDC_SWITCHES=' "-linker=bfd", "-link-defaultlib-shared"' \
$CMAKE_CROSSOPTS -S "$builddir" -B "$builddir/stage1"
make -C "$builddir/stage1"
@@ -60,6 +61,7 @@ build() {
-DD_COMPILER="$builddir/stage1/bin/ldmd2" \
-DC_SYSTEM_LIBS="unwind;m;pthread;rt;dl" \
-DADDITIONAL_DEFAULT_LDC_SWITCHES=' "-linker=bfd", "-link-defaultlib-shared"' \
+ -DLLVM_ROOT_DIR="/usr/lib/llvm11" \
$CMAKE_CROSSOPTS "$builddir"
make