Skip to content

Commit 58bafab

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 8423083 commit 58bafab

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
@@ -573,6 +573,14 @@ else
573573
COMPAT_CFLAGS += -D__USE_MINGW_ANSI_STDIO
574574
NO_CURL = YesPlease
575575
endif
576+
OTHER_PROGRAMS += git-wrapper$(X)
577+
578+
git-wrapper$(X): compat/win32/git-wrapper.o git.res
579+
$(QUIET_LINK)$(CC) -Wall -s -o $@ $^ -lshell32 -lshlwapi
580+
581+
compat/win32/git-wrapper.o: %.o: %.c GIT-PREFIX
582+
$(QUIET_CC)$(CC) -o $*.o -c -Wall -Wwrite-strings $<
583+
576584
endif
577585
endif
578586
ifeq ($(uname_S),QNX)

0 commit comments

Comments
 (0)