summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-mathematics/flint/files/flint-2.6.0-multilib-strict.patch')
-rw-r--r--sci-mathematics/flint/files/flint-2.6.0-multilib-strict.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/sci-mathematics/flint/files/flint-2.6.0-multilib-strict.patch b/sci-mathematics/flint/files/flint-2.6.0-multilib-strict.patch
new file mode 100644
index 00000000000..84ae3dfc292
--- /dev/null
+++ b/sci-mathematics/flint/files/flint-2.6.0-multilib-strict.patch
@@ -0,0 +1,20 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 9d94776..b04fa78 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -293,10 +293,12 @@ if(NOT MSVC)
+ target_link_libraries(flint PUBLIC m)
+ endif()
+
++include(GNUInstallDirs)
++
+ install(TARGETS flint
+- RUNTIME DESTINATION bin
+- ARCHIVE DESTINATION lib
+- LIBRARY DESTINATION lib
++ RUNTIME DESTINATION "${CMAKE_INSTALL_FULL_BINDIR}"
++ ARCHIVE DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}"
++ LIBRARY DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}"
+ )
+
+ install(FILES ${HEADERS} DESTINATION include/flint)