Skip to content

Commit 9c56cad

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 34a5443 commit 9c56cad

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
@@ -569,6 +569,14 @@ else
569569
COMPAT_CFLAGS += -D__USE_MINGW_ANSI_STDIO
570570
NO_CURL = YesPlease
571571
endif
572+
OTHER_PROGRAMS += git-wrapper$(X)
573+
574+
git-wrapper$(X): compat/win32/git-wrapper.o git.res
575+
$(QUIET_LINK)$(CC) -Wall -s -o $@ $^ -lshell32 -lshlwapi
576+
577+
compat/win32/git-wrapper.o: %.o: %.c
578+
$(QUIET_CC)$(CC) -o $*.o -c -Wall -Wwrite-strings $<
579+
572580
endif
573581
endif
574582
ifeq ($(uname_S),QNX)

0 commit comments

Comments
 (0)