Skip to content

Instantly share code, notes, and snippets.

@sharplet
Created August 20, 2021 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sharplet/b243fc7b8d358ccfe233eb954ecfaa0f to your computer and use it in GitHub Desktop.
Save sharplet/b243fc7b8d358ccfe233eb954ecfaa0f to your computer and use it in GitHub Desktop.
Patched Makefile.diff for installing Git on Mac OS X 10.4 Tiger
--- a/Makefile.orig
+++ b/Makefile
@@ -533,7 +533,7 @@
gitwebdir = $(sharedir)/gitweb
perllibdir = $(sharedir)/perl5
localedir = $(sharedir)/locale
template_dir = share/git-core/templates
-htmldir = $(prefix)/share/doc/git-doc
+htmldir = $(prefix)/share/doc/git-core
ETC_GITCONFIG = $(sysconfdir)/gitconfig
ETC_GITATTRIBUTES = $(sysconfdir)/gitattributes
lib = lib
@@ -1209,7 +1209,7 @@
endif
# which'll override these defaults.
CFLAGS = -g -O2 -Wall
LDFLAGS =
-CC_LD_DYNPATH = -Wl,-rpath,
+CC_LD_DYNPATH = -L
BASIC_CFLAGS = -I.
BASIC_LDFLAGS =
@@ -1286,7 +1286,7 @@
endif
ifeq ($(COMPUTE_HEADER_DEPENDENCIES),auto)
dep_check = $(shell $(CC) $(ALL_CFLAGS) \
-c -MF /dev/null -MQ /dev/null -MMD -MP \
- -x c /dev/null -o /dev/null 2>&1; \
+ -x c /dev/null -o dummy 2>&1; \
echo $$?)
ifeq ($(dep_check),0)
override COMPUTE_HEADER_DEPENDENCIES = yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment