Skip to content

Commit 4b79f5e

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. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent edbcf3d commit 4b79f5e

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
@@ -564,6 +564,14 @@ else
564564
COMPAT_CFLAGS += -D__USE_MINGW_ANSI_STDIO
565565
NO_CURL = YesPlease
566566
endif
567+
OTHER_PROGRAMS += git-wrapper$(X)
568+
569+
git-wrapper$(X): compat/win32/git-wrapper.o git.res
570+
$(QUIET_LINK)$(CC) -Wall -s -o $@ $^ -lshell32 -lshlwapi
571+
572+
compat/win32/git-wrapper.o: %.o: %.c
573+
$(QUIET_CC)$(CC) -o $*.o -c -Wall -Wwrite-strings $<
574+
567575
endif
568576
endif
569577
ifeq ($(uname_S),QNX)

0 commit comments

Comments
 (0)