8000 Make pgxs build executables with the right suffix. · home201448/postgres@237dc2d · GitHub
[go: up one dir, main page]

Skip to content

Commit 237dc2d

Browse files
committed
Make pgxs build executables with the right suffix.
Complaint and patch from Zoltán Böszörményi. When cross-compiling, the native make doesn't know about the Windows .exe suffix, so it only builds with it when explicitly told to do so. The native make will not see the link between the target name and the built executable, and might this do unnecesary work, but that's a bigger problem than this one, if in fact we consider it a problem at all. Back-patch to all live branches.
1 parent 6eedec1 commit 237dc2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/makefiles/pgxs.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,5 +276,5 @@ endif
276276

277277
ifdef PROGRAM
278278
$(PROGRAM): $(OBJS)
279-
$(CC) $(CFLAGS) $(OBJS) $(PG_LIBS) $(LDFLAGS) $(LIBS) -o $@
279+
$(CC) $(CFLAGS) $(OBJS) $(PG_LIBS) $(LDFLAGS) $(LIBS) -o $@$(X)
280280
endif

0 commit comments

Comments
 (0)
0