aboutsummaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2020-09-01 17:00:45 +0200
committerFelix Fietkau <nbd@nbd.name>2020-09-01 17:01:56 +0200
commit6541028598b4a1079ee6182c5b50d6bcd9e21002 (patch)
tree5b4fda8fb6f35aad52b41e0934ae92daf9a571de /rules.mk
parent76368a5c0ac0ce3e66a9451637937361d9bc0f78 (diff)
downloadupstream-6541028598b4a1079ee6182c5b50d6bcd9e21002.tar.gz
upstream-6541028598b4a1079ee6182c5b50d6bcd9e21002.tar.bz2
upstream-6541028598b4a1079ee6182c5b50d6bcd9e21002.zip
build: fix path to libfakeroot on macOS
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/rules.mk b/rules.mk
index 481c04549d..8b2424f2ba 100644
--- a/rules.mk
+++ b/rules.mk
@@ -264,7 +264,13 @@ endif
BUILD_KEY=$(TOPDIR)/key-build
-FAKEROOT:=$(STAGING_DIR_HOST)/bin/fakeroot -l $(STAGING_DIR_HOST)/lib/libfakeroot.so -f $(STAGING_DIR_HOST)/bin/faked
+ifeq ($(HOST_OS),Darwin)
+ FAKEROOT_SO:=$(STAGING_DIR_HOST)/lib/libfakeroot.dylib
+else
+ FAKEROOT_SO:=$(STAGING_DIR_HOST)/lib/libfakeroot.so
+endif
+FAKEROOT:=$(STAGING_DIR_HOST)/bin/fakeroot -l $(FAKEROOT_SO) -f $(STAGING_DIR_HOST)/bin/faked
+
TARGET_CC:=$(TARGET_CROSS)gcc
TARGET_CXX:=$(TARGET_CROSS)g++
KPATCH:=$(SCRIPT_DIR)/patch-kernel.sh