Skip to content

Commit

Permalink
Makefile.include: use an os independant 'relpath'
Browse files Browse the repository at this point in the history
This should now work on 'osx'.
  • Loading branch information
cladmi committed Sep 16, 2019
1 parent a1f0651 commit a019faa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit a019faa

Please sign in to comment.