Skip to content

Commit 74d3e6e

Browse files
committed
mingw: Compile the Git wrapper
We take care to embed the manifest, too, because we will modify the wrapper in the next few commits to serve as a drop-in replacement for the built-ins, i.e. we will want to call the wrapper under names such as 'git-patch-id.exe', too. To allow 32-bit and 64-bit builds in the same directory, we let git-wrapper.o depend on GIT-PREFIX so that it gets recompiled when compiling for a different architecture. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent a1df839 commit 74d3e6e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

config.mak.uname

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,14 @@ else
571571
COMPAT_CFLAGS += -D__USE_MINGW_ANSI_STDIO
572572
NO_CURL = YesPlease
573573
endif
574+
OTHER_PROGRAMS += git-wrapper$(X)
575+
576+
git-wrapper$(X): compat/win32/git-wrapper.o git.res
577+
$(QUIET_LINK)$(CC) -Wall -s -o $@ $^ -lshell32 -lshlwapi
578+
579+
compat/win32/git-wrapper.o: %.o: %.c GIT-PREFIX
580+
$(QUIET_CC)$(CC) -o $*.o -c -Wall -Wwrite-strings $<
581+
574582
endif
575583
endif
576584
ifeq ($(uname_S),QNX)

0 commit comments

Comments
 (0)