pkgsrc/lang/libLLVM/patches/patch-CMakeLists.txt

35 lines
1.2 KiB
Text
Raw Normal View History

$NetBSD: patch-CMakeLists.txt,v 1.2 2019/01/26 21:17:20 tnn Exp $
Put headers in subdirectory to avoid conflict with clang.
Don't implement sys/regset.h workaround, fix source instead.
--- CMakeLists.txt.orig 2018-11-02 17:47:32.000000000 +0000
+++ CMakeLists.txt
@@ -830,7 +830,7 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "(Fre
if( ${CMAKE_SYSTEM_NAME} MATCHES SunOS )
# special hack for Solaris to handle crazy system sys/regset.h
- include_directories("${LLVM_MAIN_INCLUDE_DIR}/llvm/Support/Solaris")
+ #include_directories("${LLVM_MAIN_INCLUDE_DIR}/llvm/Support/Solaris")
endif( ${CMAKE_SYSTEM_NAME} MATCHES SunOS )
# Make sure we don't get -rdynamic in every binary. For those that need it,
@@ -966,7 +966,7 @@ endif()
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
install(DIRECTORY include/llvm include/llvm-c
- DESTINATION include
+ DESTINATION include/libLLVM
COMPONENT llvm-headers
FILES_MATCHING
PATTERN "*.def"
@@ -978,7 +978,7 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
)
install(DIRECTORY ${LLVM_INCLUDE_DIR}/llvm ${LLVM_INCLUDE_DIR}/llvm-c
- DESTINATION include
+ DESTINATION include/libLLVM
COMPONENT llvm-headers
FILES_MATCHING
PATTERN "*.def"