mirror of
https://github.com/cemu-project/vcpkg.git
synced 2024-11-24 03:39:45 +00:00
[llvm]Fix build error on Linux: cannot find -lxml2. (#7919)
This commit is contained in:
parent
741106fa23
commit
27cee9886a
@ -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)
|
||||
|
13
ports/llvm/fix-linux-build.patch
Normal file
13
ports/llvm/fix-linux-build.patch
Normal file
@ -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()
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user