[Buildroot] [PATCH v4 7/7] package/llvm: disable libxml2
Matt Weber
matthew.weber at rockwellcollins.com
Thu Nov 22 04:26:17 UTC 2018
libxml2 is needed during Windows builds to populate the COFF
file manifest info
If left enabled, a dependency would need to be added and paths
set for libxml2 include and library paths. This isn't require at
this point for Linux builds.
Cc: Romain Naour <romain.naour at gmail.com>
Signed-off-by: Matthew Weber <matthew.weber at rockwellcollins.com>
---
This change was discovered during testing of compiler-rt
patchset. This patch could be independently applied.
Romain, hopefully you are able to verify this resolves the path
posioning you observed with the target build and libxml2.
v4
- New patch
---
package/llvm/llvm.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/package/llvm/llvm.mk b/package/llvm/llvm.mk
index 14f317d..ef54f10 100644
--- a/package/llvm/llvm.mk
+++ b/package/llvm/llvm.mk
@@ -123,6 +123,11 @@ HOST_LLVM_CONF_OPTS += -DLLVM_ENABLE_ZLIB=ON
HOST_LLVM_DEPENDENCIES += host-zlib
LLVM_CONF_OPTS += -DLLVM_ENABLE_ZLIB=OFF
+# libxml2 can be disabled as it is used for LLVM Windows builds where COFF
+# files include manifest info
+HOST_LLVM_CONF_OPTS += -DLLVM_ENABLE_LIBXML2=OFF
+LLVM_CONF_OPTS += -DLLVM_ENABLE_LIBXML2=OFF
+
# We don't use llvm for static only build, so enable PIC
HOST_LLVM_CONF_OPTS += -DLLVM_ENABLE_PIC=ON
LLVM_CONF_OPTS += -DLLVM_ENABLE_PIC=ON
--
1.9.1
More information about the buildroot
mailing list