From 42ff81a7480d9bba317b42fcca03b46da2a622ce Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 1 Oct 2022 07:10:13 +0100 Subject: gentoo auto-resync : 01:10:2022 - 07:10:12 --- .../p4est/files/p4est-2.8-fix_build_system.patch | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 sci-libs/p4est/files/p4est-2.8-fix_build_system.patch (limited to 'sci-libs/p4est/files/p4est-2.8-fix_build_system.patch') diff --git a/sci-libs/p4est/files/p4est-2.8-fix_build_system.patch b/sci-libs/p4est/files/p4est-2.8-fix_build_system.patch new file mode 100644 index 000000000000..e1f86165d5f9 --- /dev/null +++ b/sci-libs/p4est/files/p4est-2.8-fix_build_system.patch @@ -0,0 +1,24 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3226f2e..8bc5074 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -8,6 +8,8 @@ HOMEPAGE_URL https://www.p4est.org/ + DESCRIPTION "p4est manages a collection---a forest---of octrees in parallel." + VERSION ${PROJECT_VERSION}) + ++set(CMAKE_POSITION_INDEPENDENT_CODE ON) ++ + include(CTest) + + list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules) +@@ -76,8 +78,8 @@ install(DIRECTORY ${PROJECT_SOURCE_DIR}/src/ ${PROJECT_BINARY_DIR}/include/ + + install(TARGETS p4est + EXPORT ${PROJECT_NAME}Targets +- ARCHIVE DESTINATION lib +- LIBRARY DESTINATION lib) ++ ARCHIVE DESTINATION ${library_reldir} ++ LIBRARY DESTINATION ${library_reldir}) + + #--- p8est + -- cgit v1.2.3