summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maier <tamiko@gentoo.org>2022-02-13 18:15:02 -0600
committerMatthias Maier <tamiko@gentoo.org>2022-02-13 18:51:15 -0600
commitfc1125212d7c3f05146818f6870d48521231fda4 (patch)
treefb8c8957128c061bf1041b24068af8f9829cf345 /sci-libs/libsc/files/libsc-2.8.3-fix_build_system.patch
parentgui-libs/eglexternalplatform: Keyword 1.1 arm64, #831484 (diff)
downloadgentoo-fc1125212d7c3f05146818f6870d48521231fda4.tar.gz
gentoo-fc1125212d7c3f05146818f6870d48521231fda4.tar.bz2
gentoo-fc1125212d7c3f05146818f6870d48521231fda4.zip
sci-libs/libsc: version bump to 2.8.3
With the switch to CMake the new version should now obey all compiler and linker flag overrides. Closes: https://bugs.gentoo.org/794859 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Matthias Maier <tamiko@gentoo.org>
Diffstat (limited to 'sci-libs/libsc/files/libsc-2.8.3-fix_build_system.patch')
-rw-r--r--sci-libs/libsc/files/libsc-2.8.3-fix_build_system.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/sci-libs/libsc/files/libsc-2.8.3-fix_build_system.patch b/sci-libs/libsc/files/libsc-2.8.3-fix_build_system.patch
new file mode 100644
index 00000000000..b5bdc734ab5
--- /dev/null
+++ b/sci-libs/libsc/files/libsc-2.8.3-fix_build_system.patch
@@ -0,0 +1,41 @@
+https://github.com/cburstedde/libsc/pull/54
+https://github.com/cburstedde/libsc/pull/55
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 2ce08e2..a588beb 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -8,6 +8,8 @@ HOMEPAGE_URL https://www.p4est.org/
+ DESCRIPTION "The SC library supports parallel scientific applications."
+ VERSION ${PROJECT_VERSION})
+
++set(CMAKE_POSITION_INDEPENDENT_CODE ON)
++
+ include(CTest)
+
+ include(cmake/options.cmake)
+@@ -28,8 +30,7 @@ if(MPI_FOUND)
+ endif()
+
+ # --- libb64
+-add_library(libb64 OBJECT libb64/cencode.c libb64/cdecode.c
+- libb64/b64dec.c libb64/b64enc.c)
++add_library(libb64 OBJECT libb64/cencode.c libb64/cdecode.c)
+ target_include_directories(libb64 PRIVATE libb64)
+
+ # --- sc
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index a588beb..aff0eca 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -64,8 +64,8 @@ install(DIRECTORY ${PROJECT_SOURCE_DIR}/src/ ${PROJECT_SOURCE_DIR}/src/sc_builti
+
+ install(TARGETS sc
+ EXPORT ${PROJECT_NAME}Targets
+- ARCHIVE DESTINATION lib
+- LIBRARY DESTINATION lib)
++ ARCHIVE DESTINATION ${library_reldir}
++ LIBRARY DESTINATION ${library_reldir})
+
+ add_subdirectory(src)
+