From 092a606856252091ccbded34114d544280c24d35 Mon Sep 17 00:00:00 2001 From: Andrii Nakryiko Date: Fri, 5 Mar 2021 16:05:51 -0800 Subject: [PATCH] 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 --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index ab66edc..8215cbf 100644 --- a/src/Makefile +++ b/src/Makefile @@ -121,7 +121,7 @@ define do_install $(Q)if [ ! -d '$(DESTDIR)$2' ]; then \ $(INSTALL) -d -m 755 '$(DESTDIR)$2'; \ fi; - $(Q)$(INSTALL) $1 $(if $3,-m $3,) '$(DESTDIR)$2' + $(Q)$(INSTALL) $(if $3,-m $3,) $1 '$(DESTDIR)$2' endef # Preserve symlinks at installation.