From 983b89554df60cee70b5861dff39d82b4672bbbf Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Tue, 16 Jul 2024 17:21:53 +0200 Subject: [PATCH] packaging: create symlinks for clang/clang++ ... so that we can instrument builds that use Clang as the system compiler. Closes: https://github.com/csutils/cscppc/pull/43 --- make-srpm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make-srpm.sh b/make-srpm.sh index 8ff6008..ad79953 100755 --- a/make-srpm.sh +++ b/make-srpm.sh @@ -178,7 +178,7 @@ in background fully transparently. install -m0755 -d "%{buildroot}%{_libdir}"{,/cs{cppc,clng,gcca,match}} -for i in cc gcc %{_arch}-redhat-linux-gcc +for i in {,g}cc clang %{_arch}-redhat-linux-gcc do ln -s ../../bin/cscppc "%{buildroot}%{_libdir}/cscppc/\$i" ln -s ../../bin/csclng "%{buildroot}%{_libdir}/csclng/\$i" @@ -186,7 +186,7 @@ do ln -s ../../bin/csmatch "%{buildroot}%{_libdir}/csmatch/\$i" done -for i in c++ g++ %{_arch}-redhat-linux-c++ %{_arch}-redhat-linux-g++ +for i in {c,g,clang}++ %{_arch}-redhat-linux-{c,g}++ do ln -s ../../bin/cscppc "%{buildroot}%{_libdir}/cscppc/\$i" ln -s ../../bin/csclng++ "%{buildroot}%{_libdir}/csclng/\$i"