summaryrefslogtreecommitdiff
path: root/sci-libs/rocFFT/files/rocFFT-5.7.1-fix-rocm-link-path.patch
blob: 03731516d8fbc399125d6ffda1b0504e58567c58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
ld.lld with "-L/usr/lib  -lhiprtc -ldl" fails in attempt to link
64-bit library to 32-bit /usr/lib/libdl.so.2 with:
"ld.lld: error: <...>/Scrt1.o is incompatible with elf32-i386"
--- a/library/src/CMakeLists.txt
+++ b/library/src/CMakeLists.txt
@@ -46,7 +46,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 -lhiprtc -ldl )
   endif()
 endif()