diff options
| author | JackBoosY <47264268+JackBoosY@users.noreply.github.com> | 2019-09-17 06:13:12 +0800 |
|---|---|---|
| committer | Curtis J Bezault <curtbezault@gmail.com> | 2019-09-16 15:13:12 -0700 |
| commit | 27cee9886af91dc1fe6249ef52367cc48b92a921 (patch) | |
| tree | 5da7f9a3a9d4742621269900e66d10fea51cd559 | |
| parent | 741106fa23dc027c9bd1584f1c92d5f53bea7234 (diff) | |
| download | vcpkg-27cee9886af91dc1fe6249ef52367cc48b92a921.tar.gz vcpkg-27cee9886af91dc1fe6249ef52367cc48b92a921.zip | |
[llvm]Fix build error on Linux: cannot find -lxml2. (#7919)
| -rw-r--r-- | ports/llvm/CONTROL | 2 | ||||
| -rw-r--r-- | ports/llvm/fix-linux-build.patch | 13 | ||||
| -rw-r--r-- | ports/llvm/portfile.cmake | 1 |
3 files changed, 15 insertions, 1 deletions
diff --git a/ports/llvm/CONTROL b/ports/llvm/CONTROL index d7ee8524b..9a49e3cc2 100644 --- a/ports/llvm/CONTROL +++ b/ports/llvm/CONTROL @@ -1,5 +1,5 @@ Source: llvm
-Version: 8.0.0
+Version: 8.0.0-1
Homepage: https://llvm.org/
Description: The LLVM Compiler Infrastructure
Build-Depends: atlmfc (windows)
diff --git a/ports/llvm/fix-linux-build.patch b/ports/llvm/fix-linux-build.patch new file mode 100644 index 000000000..780ea6535 --- /dev/null +++ b/ports/llvm/fix-linux-build.patch @@ -0,0 +1,13 @@ +diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake +index 900c35e..78fd3cd 100644 +--- a/cmake/config-ix.cmake ++++ b/cmake/config-ix.cmake +@@ -154,7 +154,7 @@ if(NOT LLVM_USE_SANITIZER MATCHES "Memory.*") + else() + include_directories(${LIBXML2_INCLUDE_DIR}) + endif() +- set(LIBXML2_LIBS "xml2") ++ set(LIBXML2_LIBS ${LIBXML2_LIBRARIES}) + endif() + endif() + endif() diff --git a/ports/llvm/portfile.cmake b/ports/llvm/portfile.cmake index 891e41738..07c9d9ad1 100644 --- a/ports/llvm/portfile.cmake +++ b/ports/llvm/portfile.cmake @@ -31,6 +31,7 @@ vcpkg_apply_patches( PATCHES
install-cmake-modules-to-share.patch
fix-build-error.patch
+ fix-linux-build.patch
)
vcpkg_find_acquire_program(PYTHON3)
|
