From b99df0def66a5168386836b5bd20e07a7ba8ba32 Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Tue, 18 Oct 2016 06:59:02 +0000 Subject: [PATCH] Add patch from upstream to fix the build issue with CMake. fom Brad (maintainer) --- .../patches/patch-tools_clang_lib_Driver_Tools_cpp | 4 ++-- .../llvm/patches/patch-tools_lld_COFF_CMakeLists_txt | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 devel/llvm/patches/patch-tools_lld_COFF_CMakeLists_txt diff --git a/devel/llvm/patches/patch-tools_clang_lib_Driver_Tools_cpp b/devel/llvm/patches/patch-tools_clang_lib_Driver_Tools_cpp index dd2164c63a9..e23d0d53076 100644 --- a/devel/llvm/patches/patch-tools_clang_lib_Driver_Tools_cpp +++ b/devel/llvm/patches/patch-tools_clang_lib_Driver_Tools_cpp @@ -1,11 +1,11 @@ -$OpenBSD: patch-tools_clang_lib_Driver_Tools_cpp,v 1.36 2016/10/07 08:55:30 ajacoutot Exp $ +$OpenBSD: patch-tools_clang_lib_Driver_Tools_cpp,v 1.37 2016/10/18 06:59:02 ajacoutot Exp $ - Select proper SPARCv9 variant for the external assembler - For now, force soft-float on ARM - Set ABI for ARM - Disable -fstrict-aliasing per default on OpenBSD - Produce EH frame header for all binaries -- Link static PIEs with the correct C runtime (rcrt0.o) +- Link static PIE programs against rcrt0.o on OpenBSD --- tools/clang/lib/Driver/Tools.cpp.orig Sat Aug 13 16:43:56 2016 +++ tools/clang/lib/Driver/Tools.cpp Tue Sep 27 22:10:52 2016 diff --git a/devel/llvm/patches/patch-tools_lld_COFF_CMakeLists_txt b/devel/llvm/patches/patch-tools_lld_COFF_CMakeLists_txt new file mode 100644 index 00000000000..927f4d38f5a --- /dev/null +++ b/devel/llvm/patches/patch-tools_lld_COFF_CMakeLists_txt @@ -0,0 +1,12 @@ +$OpenBSD: patch-tools_lld_COFF_CMakeLists_txt,v 1.1 2016/10/18 06:59:02 ajacoutot Exp $ + +[CMake] Add missing dependency on intrinsics_gen + +--- tools/lld/COFF/CMakeLists.txt.orig Mon Oct 17 21:44:52 2016 ++++ tools/lld/COFF/CMakeLists.txt Mon Oct 17 21:45:33 2016 +@@ -33,4 +33,4 @@ add_lld_library(lldCOFF + LINK_LIBS ${PTHREAD_LIB} + ) + +-add_dependencies(lldCOFF COFFOptionsTableGen) ++add_dependencies(lldCOFF COFFOptionsTableGen intrinsics_gen)