File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,9 @@ all::
175
175
# Define OBJECT_CREATION_USES_RENAMES if your operating systems has problems
176
176
# when hardlinking a file to another name and unlinking the original file right
177
177
# away (some NTFS drivers seem to zero the contents in that scenario).
178
+ #
179
+ # Define NO_CROSS_DIRECTORY_HARDLINKS if you plan to distribute the installed
180
+ # programs as a tar, where bin/ and libexec/ might be on different file systems.
178
181
179
182
GIT-VERSION-FILE : .FORCE-GIT-VERSION-FILE
180
183
@$(SHELL_PATH ) ./GIT-VERSION-GEN
@@ -1550,6 +1553,7 @@ endif
1550
1553
bindir=$$(cd '$(DESTDIR_SQ)$(bindir_SQ)' && pwd) && \
1551
1554
execdir=$$(cd '$(DESTDIR_SQ)$(gitexec_instdir_SQ)' && pwd) && \
1552
1555
{ $(RM) "$$execdir/git-add$X" && \
1556
+ test -z "$(NO_CROSS_DIRECTORY_HARDLINKS)" && \
1553
1557
ln "$$bindir/git$X" "$$execdir/git-add$X" 2>/dev/null || \
1554
1558
cp "$$bindir/git$X" "$$execdir/git-add$X"; } && \
1555
1559
{ for p in $(filter-out git-add$X,$(BUILT_INS)); do \
You can’t perform that action at this time.
0 commit comments