Description of problem: lld does not support the -dT flag, so packages that link with lld fail to build when the package-notes-srpm-macros package is installed. Replacing -dT with --script works fine. Version-Release number of selected component (if applicable): package-notes-srpm-macros-0.4-4.fc36 How reproducible: Always Steps to Reproduce: 1. Add -fuse-ld=lld to the linker flags for any package and build it in a buildroot with package-notes-srpm-macros installed. Actual results: Build fails with the error: ld.lld: error: unknown argument '-dT' Expected results: Build succeeds.
With package-notes-0.4-11.fc36 it is possible to define %global _package_note_linker lld and the generated script will use -T instead of -dT. (It'd be nice to make this automatic, but I don't think it's possible. We generate the script early, and there doesn't seem to be any way to figure out which linker will be used.)