From e38dddf8c4cb88db4f7ce1b9d4c8ff7ebd0d46e8 Mon Sep 17 00:00:00 2001 From: Kevin Daudt Date: Wed, 27 Oct 2021 11:28:26 +0000 Subject: 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. --- community/ldc/APKBUILD | 2 ++ 1 file changed, 2 insertions(+) (limited to 'community') 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 -- cgit v1.2.3