public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rocm-compilersupport] epel10: Fix preview comgr link
@ 2026-06-09 23:07 Tom Rix
0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-06-09 23:07 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rocm-compilersupport
Branch : epel10
Commit : 79699d7d552f635abb204237b3071d1b0eb84cca
Author : Tom Rix <Tom.Rix@amd.com>
Date : 2026-04-14T08:54:13-07:00
Stats : +5/-2 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/rocm-compilersupport/c/79699d7d552f635abb204237b3071d1b0eb84cca?branch=epel10
Log:
Fix preview comgr link
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
---
diff --git a/rocm-compilersupport.spec b/rocm-compilersupport.spec
index 9fc18bc..22d4ee0 100644
--- a/rocm-compilersupport.spec
+++ b/rocm-compilersupport.spec
@@ -741,7 +741,10 @@ sed -i -e 's@-lrt -lm@-lLLVMCoverage -lLLVMFrontendDriver -lLLVMFrontendHLSL -lL
sed -i -e 's@libLLVM.so.%{llvm_maj_ver}.0%{llvm_version_suffix}@libLLVMCore.a@' build-comgr/CMakeFiles/amd_comgr.dir/link.txt
# Order of link is wrong include some missing libs
%if %{with preview}
-sed -i -e 's@-lrt -lm@-lLLVMCoverage -lLLVMFrontendDriver -lLLVMFrontendHLSL -lLLVMDTLTO -lLLVMLTO -lLLVMPlugins -lLLVMOption -lLLVMSymbolize -lLLVMWindowsDriver -lrt -lm@' build-comgr/CMakeFiles/amd_comgr.dir/link.txt
+# Remove libclang-cpp.so from link
+sed -i -e 's/[^ ]*libclang-cpp[^ ]*//g' build-comgr/CMakeFiles/amd_comgr.dir/link.txt
+# Add libraries to cover the removal
+sed -i -e 's@-lrt -lm@-lclangSerialization -lclangAST -lclangDriver -lclangOptions -lclangFrontend -lclangFrontendTool -lclangExtractAPI -lclangInstallAPI -lclangIndex -lclangCodeGen -lclangStaticAnalyzerFrontend -lclangStaticAnalyzerCore -lclangStaticAnalyzerCheckers -lclangASTMatchers -lclangCrossTU -lclangTooling -lclangToolingCore -lclangRewriteFrontend -lclangRewrite -lclangParse -lclangSema -lclangAPINotes -lclangAnalysis -lclangFormat -lclangToolingInclusions -lclangAnalysisLifetimeSafety -lclangLex -lclangEdit -lclangBasic -lclangSupport -lLLVMCoverage -lLLVMFrontendDriver -lLLVMFrontendHLSL -lLLVMDTLTO -lLLVMLTO -lLLVMPlugins -lLLVMOption -lLLVMSymbolize -lLLVMWindowsDriver -lrt -lm@' build-comgr/CMakeFiles/amd_comgr.dir/link.txt
%else
sed -i -e 's@-lrt -lm@-lLLVMCoverage -lLLVMFrontendDriver -lLLVMFrontendHLSL -lLLVMLTO -lLLVMOption -lLLVMSymbolize -lLLVMWindowsDriver -lrt -lm@' build-comgr/CMakeFiles/amd_comgr.dir/link.txt
%endif
@@ -751,7 +754,7 @@ sed -i -e 's@-lrt -lm@-lLLVMCoverage -lLLVMFrontendDriver -lLLVMFrontendHLSL -lL
# Check that static linking happened
# ldd build-comgr/libamd_comgr.so
-# fail
+# false
popd
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-09 23:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-09 23:07 [rpms/rocm-compilersupport] epel10: Fix preview comgr link Tom Rix
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox