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

Skip to content

Commit e994d83

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 d98547e commit e994d83

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
@@ -296,5 +296,5 @@ endif
296296

297297
ifdef PROGRAM
298298
$(PROGRAM): $(OBJS)
299-
$(CC) $(CFLAGS) $(OBJS) $(PG_LIBS) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@
299+
$(CC) $(CFLAGS) $(OBJS) $(PG_LIBS) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
300300
endif

0 commit comments

Comments
 (0)
0