From: Cordell Bloor <cgmb@slerp.xyz>
Date: Tue, 23 May 2023 18:57:14 -0600
Subject: fix hiprtc link

The upstream build code linking hiprtc doesn't work with the Debian
package for hiprtc. The hip rtc library is correctly linked by
hip::host, so there's no need to handle it separately. That said, some
other packages for HIP (such as those provided by Spack), have patched
out the automatic linking of hiprtc in hip::host, so upstream will
probably want to find an alternative solution.

Forwarded: not-needed
---
 library/src/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/src/CMakeLists.txt b/library/src/CMakeLists.txt
index 63c584b..c02f2fb 100644
--- a/library/src/CMakeLists.txt
+++ b/library/src/CMakeLists.txt
@@ -56,7 +56,7 @@ else()
   if( WIN32 )
     set( ROCFFT_RTC_LINK_LIBS "${HIP_PATH}/lib/hiprtc.lib" )
   else()
-    set( ROCFFT_RTC_LINK_LIBS -L${ROCM_PATH}/lib -lhiprtc -ldl )
+    set( ROCFFT_RTC_LINK_LIBS hip::host -ldl )
   endif()
 endif()
 
