From 774f744912fd35de989819f52aabfb37ceba5157 Mon Sep 17 00:00:00 2001 From: Ricardo Ribalda Delgado Date: Tue, 18 Jul 2017 11:18:41 +0200 Subject: llvm-config: Fix implementation of --libs flag llvm-config is called by mesa with the following parameters: llvm-config --libs liba libb libc libd ..... This result in an invalid call of llvm config: llvm-config --libs llvm-config liba llvm-config libb llvm-config libc .... Fix this use. Signed-off-by: Ricardo Ribalda Delgado --- recipes-devtools/clang/llvm-common/llvm-config | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'recipes-devtools/clang') diff --git a/recipes-devtools/clang/llvm-common/llvm-config b/recipes-devtools/clang/llvm-common/llvm-config index 9fb14cb..4462896 100644 --- a/recipes-devtools/clang/llvm-common/llvm-config +++ b/recipes-devtools/clang/llvm-common/llvm-config @@ -14,6 +14,10 @@ if [[ $# == 0 ]]; then exec "$NEXT_LLVM_CONFIG" fi +if [[ $1 == "--libs" ]]; then + exec "$NEXT_LLVM_CONFIG" $@ +fi + for arg in "$@"; do case "$arg" in --cppflags) -- cgit v1.2.3-54-g00ecf