mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-05 16:19:06 +08:00
Makefile: fix install flags order
Having -m flag between source and destination breaks install on MacOS, as reported in [0]. Fix it by moving the flag to the front. [0] https://github.com/openwrt/openwrt/pull/3959 Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
This commit is contained in:
committed by
Andrii Nakryiko
parent
986962fade
commit
092a606856
@@ -121,7 +121,7 @@ define do_install
|
|||||||
$(Q)if [ ! -d '$(DESTDIR)$2' ]; then \
|
$(Q)if [ ! -d '$(DESTDIR)$2' ]; then \
|
||||||
$(INSTALL) -d -m 755 '$(DESTDIR)$2'; \
|
$(INSTALL) -d -m 755 '$(DESTDIR)$2'; \
|
||||||
fi;
|
fi;
|
||||||
$(Q)$(INSTALL) $1 $(if $3,-m $3,) '$(DESTDIR)$2'
|
$(Q)$(INSTALL) $(if $3,-m $3,) $1 '$(DESTDIR)$2'
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# Preserve symlinks at installation.
|
# Preserve symlinks at installation.
|
||||||
|
|||||||
Reference in New Issue
Block a user