1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Makefile.include: use an os independant 'relpath'

This should now work on 'osx'.
This commit is contained in:
Gaëtan Harter 2019-09-16 13:52:56 +02:00
parent a1f0651170
commit a019faaedd
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B

View File

@ -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)))