summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a306798e85..0bb41eef63 100644
--- a/Makefile
+++ b/Makefile
@@ -275,12 +275,15 @@ $(SOURCE_DIST).manifest: $(SOURCE_DIST)
find $(notdir $(SOURCE_DIST)) | LC_COLLATE=C sort > $@
ifeq ($(shell tar --version | grep -c "GNU tar"),0)
+# Skip all flags if this is Darwin (a.k.a. macOS, a.k.a. OS X)
+ifeq ($(shell uname | grep -c "Darwin"),0)
TAR_FLAGS_FOR_REPRODUCIBLE_BUILDS = --uid 0 \
--gid 0 \
--numeric-owner \
--no-acls \
--no-fflags \
--no-xattrs
+endif
else
TAR_FLAGS_FOR_REPRODUCIBLE_BUILDS = --owner 0 \
--group 0 \