aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Daudt <kdaudt@alpinelinux.org>2021-10-27 11:28:26 +0000
committerKevin Daudt <kdaudt@alpinelinux.org>2021-10-27 11:29:26 +0000
commite38dddf8c4cb88db4f7ce1b9d4c8ff7ebd0d46e8 (patch)
treed609522b0c0eb3e5f041dab3b56a63b68806d200
parent6f637e7a9bdf46a464e3395889164a932b6813dc (diff)
downloadaports-e38dddf8c4cb88db4f7ce1b9d4c8ff7ebd0d46e8.tar.gz
aports-e38dddf8c4cb88db4f7ce1b9d4c8ff7ebd0d46e8.tar.bz2
aports-e38dddf8c4cb88db4f7ce1b9d4c8ff7ebd0d46e8.tar.xz
community/ldc: specify LLVM_ROOT_DIR
The default LLVM is LLVM12, but this builds against LLVM11. Provide the LLVM_ROOT_PATH explicitly so that `llvm-config` can be found.
-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