diff options
author | jbeich <jbeich@FreeBSD.org> | 2017-12-27 23:19:04 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2017-12-27 23:19:04 +0800 |
commit | bf4acd346ee5e16404bc4acd10547d3b90ebb095 (patch) | |
tree | 5f9b1c29c67e8fc6b0403c97d26b91e639816029 /lang | |
parent | ed8a3eaed8a8a3d5c9022860748dec793eed435d (diff) | |
download | freebsd-ports-gnome-bf4acd346ee5e16404bc4acd10547d3b90ebb095.tar.gz freebsd-ports-gnome-bf4acd346ee5e16404bc4acd10547d3b90ebb095.tar.zst freebsd-ports-gnome-bf4acd346ee5e16404bc4acd10547d3b90ebb095.zip |
lang/beignet: workaround broken llvm-config50 --system-libs
/usr/bin/ld: cannot find -l/usr/lib/libexecinfo.so
Inspired by: devel/libclc fix from r457263
Diffstat (limited to 'lang')
-rw-r--r-- | lang/beignet/files/patch-CMake_FindLLVM.cmake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lang/beignet/files/patch-CMake_FindLLVM.cmake b/lang/beignet/files/patch-CMake_FindLLVM.cmake index ac7575306297..5c16c60847b7 100644 --- a/lang/beignet/files/patch-CMake_FindLLVM.cmake +++ b/lang/beignet/files/patch-CMake_FindLLVM.cmake @@ -28,3 +28,13 @@ endif (LLVM_INSTALL_DIR) execute_process( +@@ -100,6 +100,9 @@ execute_process( + OUTPUT_STRIP_TRAILING_WHITESPACE + ) + if (LLVM_SYSTEM_LIBS_ORIG) ++# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223191#c3 ++string(REPLACE "-l/usr/lib/libexecinfo.so" "-lexecinfo" ++ LLVM_SYSTEM_LIBS_ORIG ${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) |