Skip to content

Commit 055a65c

Browse files
committed
mingw: Compile the Git wrapper
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 9e7db49 commit 055a65c

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
@@ -524,6 +524,7 @@ ifneq (,$(findstring MINGW,$(uname_S)))
524524
NATIVE_CRLF = YesPlease
525525
X = .exe
526526
SPARSE_FLAGS = -Wno-one-bit-signed-bitfield
527+
OTHER_PROGRAMS += git-wrapper$(X)
527528
ifneq (,$(wildcard ../THIS_IS_MSYSGIT))
528529
htmldir = share/doc/git/$(firstword $(subst -, ,$(GIT_VERSION)))/html
529530
prefix =
@@ -561,6 +562,13 @@ else
561562
else
562563
NO_CURL = YesPlease
563564
endif
565+
566+
git-wrapper$(X): compat/win32/git-wrapper.o
567+
$(QUIET_LINK)$(CC) -Wall -s -o $@ $^ -lshell32 -lshlwapi
568+
569+
compat/win32/git-wrapper.o: %.o: %.c
570+
$(QUIET_CC)$(CC) -o $*.o -c -Wall -Wwrite-strings $<
571+
564572
endif
565573
endif
566574
ifeq ($(uname_S),QNX)

0 commit comments

Comments
 (0)