On Gentoo we sanitise and fix up llvm-config to work with shared libraries and to provide correct output for @world to build against. (See https://bugs.gentoo.org/show_bug.cgi?id=565358) Part of this is we wipe "system-libs" since it's inappropriate to link to unnecessarily.
This has revealed the FindLLVM.cmake included with Beignet fails when system-libs is empty. Attached patch fixes this by checking for a result before calling REGEX.
--- CMake/FindLLVM.cmake~ 2015-12-16 14:24:01.000000000 +0100
+++ CMake/FindLLVM.cmake 2015-12-16 14:41:45.728924359 +0100
@@ -100,7 +100,9 @@
OUTPUT_VARIABLE LLVM_SYSTEM_LIBS_ORIG
OUTPUT_STRIP_TRAILING_WHITESPACE
)
+if (LLVM_SYSTEM_LIBS_ORIG)
string(REGEX REPLACE " *\n" "" LLVM_SYSTEM_LIBS ${LLVM_SYSTEM_LIBS_ORIG})
+endif (LLVM_SYSTEM_LIBS_ORIG)
endif (LLVM_VERSION_NODOT VERSION_GREATER 34)
macro(add_one_lib name)
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Beignet mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/beignet
