mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-03 19:32:57 +02:00
llvm18: fix libz3 link
This commit is contained in:
parent
cf623fe190
commit
3b565cbe39
2 changed files with 22 additions and 3 deletions
21
srcpkgs/llvm18/patches/z3-libs.patch
Normal file
21
srcpkgs/llvm18/patches/z3-libs.patch
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
--- a/llvm/CMakeLists.txt
|
||||||
|
+++ b/llvm/CMakeLists.txt
|
||||||
|
@@ -563,6 +563,7 @@ if (LLVM_ENABLE_Z3_SOLVER)
|
||||||
|
if (NOT Z3_FOUND)
|
||||||
|
message(FATAL_ERROR "LLVM_ENABLE_Z3_SOLVER cannot be enabled when Z3 is not available.")
|
||||||
|
endif()
|
||||||
|
+ set(Z3_LIBRARIES z3)
|
||||||
|
|
||||||
|
set(LLVM_WITH_Z3 1)
|
||||||
|
endif()
|
||||||
|
--- a/llvm/lib/Support/CMakeLists.txt
|
||||||
|
+++ b/llvm/lib/Support/CMakeLists.txt
|
||||||
|
@@ -88,7 +88,7 @@ endif()
|
||||||
|
|
||||||
|
# Link Z3 if the user wants to build it.
|
||||||
|
if(LLVM_WITH_Z3)
|
||||||
|
- set(system_libs ${system_libs} ${Z3_LIBRARIES})
|
||||||
|
+ set(system_libs ${system_libs} z3)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Override the C runtime allocator on Windows and embed it into LLVM tools & libraries
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'llvm18'.
|
# Template file for 'llvm18'.
|
||||||
pkgname=llvm18
|
pkgname=llvm18
|
||||||
version=18.1.8
|
version=18.1.8
|
||||||
revision=4
|
revision=5
|
||||||
build_wrksrc=llvm
|
build_wrksrc=llvm
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
configure_args="
|
configure_args="
|
||||||
|
@ -311,8 +311,6 @@ post_install() {
|
||||||
vcopy ${wrksrc}/${build_wrksrc}/runtimes-doc/libunwind/docs/html ${LIBUNWIND_DOCS}
|
vcopy ${wrksrc}/${build_wrksrc}/runtimes-doc/libunwind/docs/html ${LIBUNWIND_DOCS}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sed -i 's|/usr[^;]*libz3.so|z3|' "${DESTDIR}/usr/lib/cmake/llvm/LLVMExports.cmake"
|
|
||||||
|
|
||||||
# Can this be disabled some other way?
|
# Can this be disabled some other way?
|
||||||
rm -rf ${DESTDIR}/usr/lib64
|
rm -rf ${DESTDIR}/usr/lib64
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue