Skip to content

Commit aaf5f59

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 c54ebcb commit aaf5f59

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
@@ -286,5 +286,5 @@ endif
286286

287287
ifdef PROGRAM
288288
$(PROGRAM): $(OBJS)
289-
$(CC) $(CFLAGS) $(OBJS) $(PG_LIBS) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@
289+
$(CC) $(CFLAGS) $(OBJS) $(PG_LIBS) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
290290
endif

0 commit comments

Comments
 (0)