public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hipfort] rawhide: Update patch
@ 2026-09-23 23:21 Tom Rix
  0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-09-23 23:21 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/hipfort
            Branch : rawhide
            Commit : fd88e813e9c589a40ed6063d49699788d8ab426c
            Author : Tom Rix <Tom.Rix@amd.com>
            Date   : 2026-09-23T16:21:12-07:00
            Stats  : +23/-15 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/hipfort/c/fd88e813e9c589a40ed6063d49699788d8ab426c?branch=rawhide

            Log:
            Update patch

Signed-off-by: Tom Rix <Tom.Rix@amd.com>

---
diff --git a/0001-Handle-cmake-BUILD_SHARED_LIBS-ON.patch b/0001-Handle-cmake-BUILD_SHARED_LIBS-ON.patch
index 646f44f..26fa90b 100644
--- a/0001-Handle-cmake-BUILD_SHARED_LIBS-ON.patch
+++ b/0001-Handle-cmake-BUILD_SHARED_LIBS-ON.patch
@@ -1,35 +1,43 @@
-From 263ae181eb1fdd95acee0b47a4836d3afa032d0a Mon Sep 17 00:00:00 2001
+From 96d68c9bd1bf0cb839f2da5ed42ab0727692a609 Mon Sep 17 00:00:00 2001
 From: Tom Rix <Tom.Rix@amd.com>
-Date: Thu, 20 Aug 2026 16:52:46 -0700
+Date: Mon, 21 Sep 2026 10:35:20 -0700
 Subject: [PATCH] Handle cmake BUILD_SHARED_LIBS ON
 
 ---
- lib/CMakeLists.txt | 7 +++++--
- 1 file changed, 5 insertions(+), 2 deletions(-)
+ lib/CMakeLists.txt | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
 
 diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
-index e7fb7db109e2..4089da30079d 100644
+index 7e46696b28bd..ee05624c29e5 100644
 --- a/lib/CMakeLists.txt
 +++ b/lib/CMakeLists.txt
-@@ -39,13 +39,16 @@ set(HIPFORT_ARCH "amdgcn")
+@@ -98,13 +98,16 @@ set(HIPFORT_ARCH "amdgcn")
      # amdgcn
      set(HIPFORT_LIB      "hipfort-${HIPFORT_ARCH}")
      set(CMAKE_Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/include/hipfort/${HIPFORT_ARCH})
--    ADD_LIBRARY(${HIPFORT_LIB} STATIC 
-+    ADD_LIBRARY(${HIPFORT_LIB} SHARED 
-         ${HIPFORT_SRC_HIP} 
-         )
+-    ADD_LIBRARY(${HIPFORT_LIB} STATIC
++    ADD_LIBRARY(${HIPFORT_LIB} SHARED
+         ${HIPFORT_SRC_AMDGCN}
+-        )
++      )
++    set_target_properties(${HIPFORT_LIB} PROPERTIES VERSION ${hipfort_VERSION} SOVERSION ${hipfort_VERSION})
++
      target_include_directories(${HIPFORT_LIB}
        PUBLIC
          $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/hipfort/amdgcn>
--    )
-+      )
-+    target_link_libraries(${HIPFORT_LIB} -lhipblas -lhipsparse -lhipsolver -lhipfft -lhiprand)
-+    set_target_properties(${HIPFORT_LIB} PROPERTIES VERSION ${hipfort_VERSION} SOVERSION ${hipfort_VERSION})
+     )
 +
      IF(HIPFORT_USE_FPOINTER_INTERFACES)
      	target_compile_definitions(${HIPFORT_LIB} PRIVATE USE_FPOINTER_INTERFACES)
-     ENDIF(HIPFORT_USE_FPOINTER_INTERFACES)
+     	IF(HIPFORT_ASSUMED_RANK)
+@@ -190,6 +193,7 @@ macro(hipfort_add_component name imported_target)
+   # The archive is shared by every component, so CMake orders it after the ROCm
+   # .so files and --as-needed drops them. This dependency puts the archive first.
+   target_link_libraries(${HIPFORT_BASE_LIB} INTERFACE "$<BUILD_INTERFACE:${imported_target}>")
++
+   rocm_install(
+     TARGETS
+       hipfort-${name}
 -- 
 2.55.0
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-23 23:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-23 23:21 [rpms/hipfort] rawhide: Update patch Tom Rix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox