diff options
author | Romain Naour <romain.naour@smile.fr> | 2019-01-16 22:39:21 +0100 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2019-01-17 09:56:49 +0100 |
commit | d3245ce4258f4f5e5230e976862a0fd40fdd1890 (patch) | |
tree | df9e067a7e0f4395aae2f47a818c884069ffce95 /package/openvmtools/0003-dont-force-cppflags.patch | |
parent | 96d90ae4e782559c78ae48de5230a9e3a8a08964 (diff) | |
download | buildroot-d3245ce4258f4f5e5230e976862a0fd40fdd1890.tar.gz buildroot-d3245ce4258f4f5e5230e976862a0fd40fdd1890.zip |
package/llvm: set the path to llvm-config
While building llvm for the target (x86_64), the build failed due to
path poisoning (-I/usr/include/libxml2) while building NATIVE tools
(i.e for the host). The llvm package tries to build a tool for the host
with the cross-compiler which doesn't work when the paranoid toolchain
wrapper (BR2_COMPILER_PARANOID_UNSAFE_PATH) is enabled.
We know that llvm (target) needs llvm-tablegen and llvm-config built by
host-llvm, but only LLVM_TABLEGEN is provided by llvm.mk. Adding
LLVM_CONFIG_PATH=$(HOST_DIR)/bin/llvm-config for llvm (target)
fixes the path poisoining issue since llvm doesn't build the NATIVE
variant.
Signed-off-by: Romain Naour <romain.naour@smile.fr>
Cc: Valentin Korenblit <valentinkorenblit@gmail.com>
Cc: Matthew Weber <matthew.weber@rockwellcollins.com>
Tested-by: Matthew Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/openvmtools/0003-dont-force-cppflags.patch')
0 files changed, 0 insertions, 0 deletions