From c4f24c4ee5266268905fbc8456a1ea4a9659b7d4 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Wed, 27 May 2020 17:07:00 +0200 Subject: [PATCH] Fix build / installation of a clang plugin Signed-off-by: Igor Raits --- annobin.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/annobin.spec b/annobin.spec index b92874e..5773b3a 100644 --- a/annobin.spec +++ b/annobin.spec @@ -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 #---------------------------------------------------------------------------------