Skip to content

Commit

Permalink
packaging: create symlinks for clang/clang++
Browse files Browse the repository at this point in the history
... so that we can instrument builds that use Clang as the system
compiler.

Closes: #43
  • Loading branch information
kdudka committed Jul 16, 2024
1 parent 3cf3719 commit 983b895
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions make-srpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,15 @@ 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"
ln -s ../../bin/csgcca "%{buildroot}%{_libdir}/csgcca/\$i"
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"
Expand Down

0 comments on commit 983b895

Please sign in to comment.