gentoo-ebuilds/sci-libs/rocFFT/files/rocFFT-5.7.1-fix-rocm-link-path.patch
Sv. Lockal b79a363ec6
sci-libs/rocFFT: fix build with ld.lld
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-03-08 19:22:02 +00:00

14 lines
492 B
Diff

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()