install: don't preserve file owner

'cp -p' preserve file ownership, this may leave files owned by the
current in user in /lib .

Signed-off-by: Matteo Croce <mcroce@microsoft.com>
This commit is contained in:
Matteo Croce 2021-01-26 12:41:47 +01:00 committed by Andrii Nakryiko
parent a199b85415
commit 767d82caab

View File

@ -130,7 +130,7 @@ define do_s_install
$(Q)if [ ! -d '$(DESTDIR)$2' ]; then \
$(INSTALL) -d -m 755 '$(DESTDIR)$2'; \
fi;
$(Q)cp -fpR $1 '$(DESTDIR)$2'
$(Q)cp -fR $1 '$(DESTDIR)$2'
endef
install: all install_headers install_pkgconfig