Skip to content

Commit 4ff17c4

Browse files
Alexander Gordeevacmel
authored andcommitted
libperf: Fix install_pkgconfig target
Commit 47e02b9 ("tools lib perf: Add dependency test to install_headers") misses the notion of $(DESTDIR_SQ) for install_pkgconfig target, which leads to error: install: cannot create regular file '/usr/lib64/pkgconfig/libperf.pc': Permission denied make: *** [Makefile:210: install_pkgconfig] Error 1 Signed-off-by: Alexander Gordeev <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Josh Poimboeuf <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Masahiro Yamada <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Nathan Chancellor <[email protected]> Cc: Nick Desaulniers <[email protected]> Cc: Nicolas Schier <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Tom Rix <[email protected]> Cc: [email protected] Cc: [email protected] Link: http://lore.kernel.org/lkml/Y5w/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 1a93170 commit 4ff17c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/lib/perf/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ install_headers: $(INSTALL_HDRS) $(INSTALL_INTERNAL_HDRS)
208208

209209
install_pkgconfig: $(LIBPERF_PC)
210210
$(call QUIET_INSTALL, $(LIBPERF_PC)) \
211-
$(call do_install,$(LIBPERF_PC),$(libdir_SQ)/pkgconfig,644)
211+
$(call do_install,$(LIBPERF_PC),$(DESTDIR_SQ)$(libdir_SQ)/pkgconfig,644)
212212

213213
install_doc:
214214
$(Q)$(MAKE) -C Documentation install-man install-html install-examples

0 commit comments

Comments
 (0)