2020-03-22 03:11:30 -06:00
|
|
|
diff --git a/Makefile b/Makefile
|
2020-06-01 13:11:36 -06:00
|
|
|
index 90aa329..c49f1aa 100644
|
2020-03-22 03:11:30 -06:00
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
2020-06-01 13:11:36 -06:00
|
|
|
@@ -804,9 +804,7 @@ export PYTHON_PATH
|
|
|
|
|
2020-03-03 17:56:35 -07:00
|
|
|
TEST_SHELL_PATH = $(SHELL_PATH)
|
2020-06-01 13:11:36 -06:00
|
|
|
|
2020-03-03 17:56:35 -07:00
|
|
|
-LIB_FILE = libgit.a
|
|
|
|
-XDIFF_LIB = xdiff/lib.a
|
|
|
|
-VCSSVN_LIB = vcs-svn/lib.a
|
|
|
|
+LIB_FILE = libgit.so
|
2020-06-01 13:11:36 -06:00
|
|
|
|
|
|
|
GENERATED_H += config-list.h
|
2020-03-03 17:56:35 -07:00
|
|
|
GENERATED_H += command-list.h
|
2020-03-22 03:11:30 -06:00
|
|
|
@@ -1162,7 +1160,7 @@ THIRD_PARTY_SOURCES += compat/regex/%
|
2020-03-03 17:56:35 -07:00
|
|
|
THIRD_PARTY_SOURCES += sha1collisiondetection/%
|
|
|
|
THIRD_PARTY_SOURCES += sha1dc/%
|
2020-06-01 13:11:36 -06:00
|
|
|
|
2020-03-03 17:56:35 -07:00
|
|
|
-GITLIBS = common-main.o $(LIB_FILE) $(XDIFF_LIB)
|
|
|
|
+GITLIBS = common-main.o $(LIB_FILE)
|
|
|
|
EXTLIBS =
|
2020-06-01 13:11:36 -06:00
|
|
|
|
2020-03-03 17:56:35 -07:00
|
|
|
GIT_USER_AGENT = git/$(GIT_VERSION)
|
2020-03-22 03:11:30 -06:00
|
|
|
@@ -1203,7 +1201,7 @@ include config.mak.dev
|
2020-03-03 17:56:35 -07:00
|
|
|
endif
|
2020-06-01 13:11:36 -06:00
|
|
|
|
2020-03-03 17:56:35 -07:00
|
|
|
ALL_CFLAGS = $(DEVELOPER_CFLAGS) $(CPPFLAGS) $(CFLAGS)
|
|
|
|
-ALL_LDFLAGS = $(LDFLAGS)
|
|
|
|
+ALL_LDFLAGS = $(LDFLAGS) -Wl,-rpath,$(gitexecdir_SQ)
|
2020-06-01 13:11:36 -06:00
|
|
|
|
2020-03-03 17:56:35 -07:00
|
|
|
comma := ,
|
|
|
|
empty :=
|
2020-03-22 03:11:30 -06:00
|
|
|
@@ -1882,7 +1880,7 @@ ifneq ($(findstring s,$(MAKEFLAGS)),s)
|
2020-03-03 17:56:35 -07:00
|
|
|
ifndef V
|
|
|
|
QUIET_CC = @echo ' ' CC $@;
|
|
|
|
QUIET_AR = @echo ' ' AR $@;
|
|
|
|
- QUIET_LINK = @echo ' ' LINK $@;
|
|
|
|
+ QUIET_LINK = @echo ' ' CCLD $@;
|
|
|
|
QUIET_BUILT_IN = @echo ' ' BUILTIN $@;
|
|
|
|
QUIET_GEN = @echo ' ' GEN $@;
|
|
|
|
QUIET_LNCP = @echo ' ' LN/CP $@;
|
2020-03-22 03:11:30 -06:00
|
|
|
@@ -2125,7 +2123,7 @@ git.sp git.s git.o: EXTRA_CPPFLAGS = \
|
2020-03-03 17:56:35 -07:00
|
|
|
'-DGIT_MAN_PATH="$(mandir_relative_SQ)"' \
|
|
|
|
'-DGIT_INFO_PATH="$(infodir_relative_SQ)"'
|
2020-06-01 13:11:36 -06:00
|
|
|
|
2020-03-03 17:56:35 -07:00
|
|
|
-git$X: git.o GIT-LDFLAGS $(BUILTIN_OBJS) $(GITLIBS)
|
|
|
|
+git$X: GIT-LDFLAGS $(GITLIBS)
|
|
|
|
$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) \
|
|
|
|
$(filter %.o,$^) $(LIBS)
|
2020-06-01 13:11:36 -06:00
|
|
|
|
2020-03-22 03:11:30 -06:00
|
|
|
@@ -2464,9 +2462,8 @@ git-http-push$X: http.o http-push.o GIT-LDFLAGS $(GITLIBS)
|
2020-03-03 17:56:35 -07:00
|
|
|
$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
|
|
|
|
$(CURL_LIBCURL) $(EXPAT_LIBEXPAT) $(LIBS)
|
2020-06-01 13:11:36 -06:00
|
|
|
|
2020-03-03 17:56:35 -07:00
|
|
|
-git-remote-testsvn$X: remote-testsvn.o GIT-LDFLAGS $(GITLIBS) $(VCSSVN_LIB)
|
|
|
|
- $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS) \
|
|
|
|
- $(VCSSVN_LIB)
|
|
|
|
+git-remote-testsvn$X: remote-testsvn.o GIT-LDFLAGS $(GITLIBS)
|
|
|
|
+ $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)
|
2020-06-01 13:11:36 -06:00
|
|
|
|
2020-03-03 17:56:35 -07:00
|
|
|
$(REMOTE_CURL_ALIASES): $(REMOTE_CURL_PRIMARY)
|
|
|
|
$(QUIET_LNCP)$(RM) $@ && \
|
2020-03-22 03:11:30 -06:00
|
|
|
@@ -2478,14 +2475,8 @@ $(REMOTE_CURL_PRIMARY): remote-curl.o http.o http-walker.o GIT-LDFLAGS $(GITLIBS
|
2020-03-03 17:56:35 -07:00
|
|
|
$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
|
|
|
|
$(CURL_LIBCURL) $(EXPAT_LIBEXPAT) $(LIBS)
|
2020-06-01 13:11:36 -06:00
|
|
|
|
2020-03-03 17:56:35 -07:00
|
|
|
-$(LIB_FILE): $(LIB_OBJS)
|
|
|
|
- $(QUIET_AR)$(RM) $@ && $(AR) $(ARFLAGS) $@ $^
|
|
|
|
-
|
|
|
|
-$(XDIFF_LIB): $(XDIFF_OBJS)
|
|
|
|
- $(QUIET_AR)$(RM) $@ && $(AR) $(ARFLAGS) $@ $^
|
|
|
|
-
|
|
|
|
-$(VCSSVN_LIB): $(VCSSVN_OBJS)
|
|
|
|
- $(QUIET_AR)$(RM) $@ && $(AR) $(ARFLAGS) $@ $^
|
|
|
|
+$(LIB_FILE): $(LIB_OBJS) $(BUILTIN_OBJS) $(XDIFF_OBJS) $(VCSSVN_OBJS) git.o
|
|
|
|
+ $(QUIET_LINK)$(RM) $@ && $(CC) $(ALL_CFLAGS) $(ALL_LDFLAGS) -lz -lpthread -shared -o $@ $^
|
2020-06-01 13:11:36 -06:00
|
|
|
|
2020-03-03 17:56:35 -07:00
|
|
|
export DEFAULT_EDITOR DEFAULT_PAGER
|
2020-06-01 13:11:36 -06:00
|
|
|
|
2020-03-22 03:11:30 -06:00
|
|
|
@@ -2761,9 +2752,9 @@ perf: all
|
2020-06-01 13:11:36 -06:00
|
|
|
|
2020-03-03 17:56:35 -07:00
|
|
|
.PHONY: test perf
|
2020-06-01 13:11:36 -06:00
|
|
|
|
2020-03-03 17:56:35 -07:00
|
|
|
-t/helper/test-line-buffer$X: $(VCSSVN_LIB)
|
|
|
|
+t/helper/test-line-buffer$X: $(LIB_FILE)
|
2020-06-01 13:11:36 -06:00
|
|
|
|
2020-03-03 17:56:35 -07:00
|
|
|
-t/helper/test-svn-fe$X: $(VCSSVN_LIB)
|
|
|
|
+t/helper/test-svn-fe$X: $(LIB_FILE)
|
2020-06-01 13:11:36 -06:00
|
|
|
|
2020-03-03 17:56:35 -07:00
|
|
|
.PRECIOUS: $(TEST_OBJS)
|
2020-06-01 13:11:36 -06:00
|
|
|
|
2020-03-22 03:11:30 -06:00
|
|
|
@@ -2882,6 +2873,7 @@ install: all
|
2020-03-03 17:56:35 -07:00
|
|
|
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(bindir_SQ)'
|
|
|
|
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
|
|
|
|
$(INSTALL) $(ALL_PROGRAMS) '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
|
|
|
|
+ $(INSTALL) $(LIB_FILE) '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
|
|
|
|
$(INSTALL) -m 644 $(SCRIPT_LIB) '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
|
|
|
|
$(INSTALL) $(install_bindir_programs) '$(DESTDIR_SQ)$(bindir_SQ)'
|
|
|
|
ifdef MSVC
|
2020-03-22 03:11:30 -06:00
|
|
|
@@ -3102,7 +3094,7 @@ cocciclean:
|
2020-03-03 17:56:35 -07:00
|
|
|
clean: profile-clean coverage-clean cocciclean
|
|
|
|
$(RM) *.res
|
|
|
|
$(RM) $(OBJECTS)
|
|
|
|
- $(RM) $(LIB_FILE) $(XDIFF_LIB) $(VCSSVN_LIB)
|
|
|
|
+ $(RM) $(LIB_FILE)
|
|
|
|
$(RM) $(ALL_PROGRAMS) $(SCRIPT_LIB) $(BUILT_INS) git$X
|
|
|
|
$(RM) $(TEST_PROGRAMS)
|
|
|
|
$(RM) $(FUZZ_PROGRAMS)
|