From a019faaedd5155cfbb851b45a487f4de2ca0903f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= Date: Mon, 16 Sep 2019 13:52:56 +0200 Subject: [PATCH] Makefile.include: use an os independant 'relpath' This should now work on 'osx'. --- Makefile.include | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.include b/Makefile.include index bae0388d49..8df7939bfe 100644 --- a/Makefile.include +++ b/Makefile.include @@ -500,7 +500,8 @@ endif # BUILD_IN_DOCKER # Rules to check the correctness of thin archives. -relpath = $(shell realpath --relative-to=$(abspath .) $(1)) +# OS independant relpath as 'realpath --relative-to' is not supported on OSx +relpath = $(shell python3 -c 'import pathlib; print(pathlib.Path("$1").relative_to("$(CURDIR)"))') # Each ARCHECK file contains all the absolute paths found inside the archive. BASELIB_ARCHECKS = $(patsubst %.a,%.a-check,$(filter %.a,$(BASELIBS)))