File macros.rocm of Package rocm-rpm-macros
%rocm_gpu_list default
%rocm_gpu_list_default "gfx1100"
%rocm_gpu_list_hipblaslt "gfx1100"
%rocm_gpu_list_rccl "gfx1100"
%__cc_rocm hipcc
%__cxx_rocm hipcc
%__cpp_rocm clang-cpp
%_rocm_extra_ldflags %{?_lto_cflags}
%build_ldflags -Wl,-z,relro %{?_ld_as_needed_flags} %{?_ld_symbols_flags} %{?_hardened_ldflags} %{?_annotation_ldflags} "%{?_rocm_extra_ldflags}" %{?_build_id_flags} %{?_package_note_flags} %{?_distro_extra_ldflags}
%__spec_install_post\
%{?__brp_llvm_compile_lto_elf} \
%{?__debug_package:%{__debug_install_post}}\
%{__arch_install_post}\
%{__os_install_post}\
%{nil}
%_hardening_rocm_cflags --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg
%_hardening_cflags -fPIE -Xarch_host -fstack-protector-strong
%_hardening_ldflags -Wl,-z,now
%_hardening_rocm_ldflags -Wl,-z,now
%_annobin_rocm_plugin %dnl-fplugin=/usr/lib64/clang/`clang -dumpversion`/lib/annobin.so
%_rocm_lto_cflags -flto=thin