Skip to content

Commit 983b895

Browse files
committed
packaging: create symlinks for clang/clang++
... so that we can instrument builds that use Clang as the system compiler. Closes: #43
1 parent 3cf3719 commit 983b895

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: make-srpm.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,15 +178,15 @@ in background fully transparently.
178178
179179
install -m0755 -d "%{buildroot}%{_libdir}"{,/cs{cppc,clng,gcca,match}}
180180
181-
for i in cc gcc %{_arch}-redhat-linux-gcc
181+
for i in {,g}cc clang %{_arch}-redhat-linux-gcc
182182
do
183183
ln -s ../../bin/cscppc "%{buildroot}%{_libdir}/cscppc/\$i"
184184
ln -s ../../bin/csclng "%{buildroot}%{_libdir}/csclng/\$i"
185185
ln -s ../../bin/csgcca "%{buildroot}%{_libdir}/csgcca/\$i"
186186
ln -s ../../bin/csmatch "%{buildroot}%{_libdir}/csmatch/\$i"
187187
done
188188
189-
for i in c++ g++ %{_arch}-redhat-linux-c++ %{_arch}-redhat-linux-g++
189+
for i in {c,g,clang}++ %{_arch}-redhat-linux-{c,g}++
190190
do
191191
ln -s ../../bin/cscppc "%{buildroot}%{_libdir}/cscppc/\$i"
192192
ln -s ../../bin/csclng++ "%{buildroot}%{_libdir}/csclng/\$i"

0 commit comments

Comments
 (0)