Remove SIMPLE_PROGRAMS and make git-daemon a normal program.
Some platforms (Solaris in particular) appear to require -lz as part of the link line for git-daemon, due to it linking against sha1_file.o and that module requiring inflate/deflate support. So its time to retire SIMPLE_PROGRAMS and move its last remaining member into the standard PROGRAMS list, allowing it to link against all libraries used by the rest of Git. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
bf8675d314
commit
af8ffbed0f
14
Makefile
14
Makefile
@ -185,15 +185,12 @@ SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \
|
|||||||
$(patsubst %.py,%,$(SCRIPT_PYTHON)) \
|
$(patsubst %.py,%,$(SCRIPT_PYTHON)) \
|
||||||
git-cherry-pick git-status git-instaweb
|
git-cherry-pick git-status git-instaweb
|
||||||
|
|
||||||
# The ones that do not have to link with lcrypto, lz nor xdiff.
|
|
||||||
SIMPLE_PROGRAMS = \
|
|
||||||
git-daemon$X
|
|
||||||
|
|
||||||
# ... and all the rest that could be moved out of bindir to gitexecdir
|
# ... and all the rest that could be moved out of bindir to gitexecdir
|
||||||
PROGRAMS = \
|
PROGRAMS = \
|
||||||
git-convert-objects$X git-fetch-pack$X git-fsck-objects$X \
|
git-convert-objects$X git-fetch-pack$X git-fsck-objects$X \
|
||||||
git-hash-object$X git-index-pack$X git-local-fetch$X \
|
git-hash-object$X git-index-pack$X git-local-fetch$X \
|
||||||
git-merge-base$X \
|
git-merge-base$X \
|
||||||
|
git-daemon$X \
|
||||||
git-merge-index$X git-mktag$X git-mktree$X git-patch-id$X \
|
git-merge-index$X git-mktag$X git-mktree$X git-patch-id$X \
|
||||||
git-peek-remote$X git-receive-pack$X \
|
git-peek-remote$X git-receive-pack$X \
|
||||||
git-send-pack$X git-shell$X \
|
git-send-pack$X git-shell$X \
|
||||||
@ -215,7 +212,7 @@ BUILT_INS = \
|
|||||||
$(patsubst builtin-%.o,git-%$X,$(BUILTIN_OBJS))
|
$(patsubst builtin-%.o,git-%$X,$(BUILTIN_OBJS))
|
||||||
|
|
||||||
# what 'all' will build and 'install' will install, in gitexecdir
|
# what 'all' will build and 'install' will install, in gitexecdir
|
||||||
ALL_PROGRAMS = $(PROGRAMS) $(SIMPLE_PROGRAMS) $(SCRIPTS) \
|
ALL_PROGRAMS = $(PROGRAMS) $(SCRIPTS) \
|
||||||
git-merge-recur$X
|
git-merge-recur$X
|
||||||
|
|
||||||
# Backward compatibility -- to be removed after 1.0
|
# Backward compatibility -- to be removed after 1.0
|
||||||
@ -479,11 +476,9 @@ ifdef NEEDS_LIBICONV
|
|||||||
endif
|
endif
|
||||||
ifdef NEEDS_SOCKET
|
ifdef NEEDS_SOCKET
|
||||||
EXTLIBS += -lsocket
|
EXTLIBS += -lsocket
|
||||||
SIMPLE_LIB += -lsocket
|
|
||||||
endif
|
endif
|
||||||
ifdef NEEDS_NSL
|
ifdef NEEDS_NSL
|
||||||
EXTLIBS += -lnsl
|
EXTLIBS += -lnsl
|
||||||
SIMPLE_LIB += -lnsl
|
|
||||||
endif
|
endif
|
||||||
ifdef NO_D_TYPE_IN_DIRENT
|
ifdef NO_D_TYPE_IN_DIRENT
|
||||||
BASIC_CFLAGS += -DNO_D_TYPE_IN_DIRENT
|
BASIC_CFLAGS += -DNO_D_TYPE_IN_DIRENT
|
||||||
@ -728,11 +723,6 @@ endif
|
|||||||
git-%$X: %.o $(GITLIBS)
|
git-%$X: %.o $(GITLIBS)
|
||||||
$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)
|
$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)
|
||||||
|
|
||||||
$(SIMPLE_PROGRAMS) : $(LIB_FILE)
|
|
||||||
$(SIMPLE_PROGRAMS) : git-%$X : %.o
|
|
||||||
$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
|
|
||||||
$(LIB_FILE) $(SIMPLE_LIB)
|
|
||||||
|
|
||||||
ssh-pull.o: ssh-fetch.c
|
ssh-pull.o: ssh-fetch.c
|
||||||
ssh-push.o: ssh-upload.c
|
ssh-push.o: ssh-upload.c
|
||||||
git-local-fetch$X: fetch.o
|
git-local-fetch$X: fetch.o
|
||||||
|
Loading…
Reference in New Issue
Block a user