Fix build / installation of a clang plugin

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Raits 2020-05-27 17:07:00 +02:00
parent 225ffdc722
commit c4f24c4ee5
No known key found for this signature in database
GPG Key ID: 115D5AB89C5C1E1E

View File

@ -162,7 +162,7 @@ hardening options.
# Instead it just uses dlopen() with no pathname prefix. So we
# construct a (hopefully good) path and rely upon users of annobin
# knowing about this location.
%global ANNOBIN_CLANG_PLUGIN_DIR /usr/lib64/clang/%(clang --dumpversion)/lib
%global ANNOBIN_CLANG_PLUGIN_DIR /usr/lib64/clang/%(clang -dumpversion)/lib
%endif
#---------------------------------------------------------------------------------
@ -220,10 +220,10 @@ make -C clang-plugin annobin.so
%install
%make_install
%{__rm} -f %{buildroot}%{_infodir}/dir
rm -f %{buildroot}%{_infodir}/dir
%if %{with clangplugin}
cp clang-plugin/annobin.so %{ANNOBIN_CLANG_PLUGIN_DIR}
install -Dpm0755 -t %{buildroot}%{ANNOBIN_CLANG_PLUGIN_DIR} clang-plugin/annobin.so
%endif
#---------------------------------------------------------------------------------