summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunstan2013-01-19 19:54:29 +0000
committerAndrew Dunstan2013-01-19 19:54:29 +0000
commitef75023efb1536b88bc7d3597952b1f4ff0f6986 (patch)
tree678e836b9073e966b5cc1e34999edb74c16eef26
parent4d08f56deeb27a9a10072cfc976db0204d1c9684 (diff)
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.
-rw-r--r--src/makefiles/pgxs.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/makefiles/pgxs.mk b/src/makefiles/pgxs.mk
index e52426685c8..e63c7121c66 100644
--- a/src/makefiles/pgxs.mk
+++ b/src/makefiles/pgxs.mk
@@ -278,5 +278,5 @@ endif
ifdef PROGRAM
$(PROGRAM): $(OBJS)
- $(CC) $(CFLAGS) $(OBJS) $(PG_LIBS) $(LDFLAGS) $(LIBS) -o $@
+ $(CC) $(CFLAGS) $(OBJS) $(PG_LIBS) $(LDFLAGS) $(LIBS) -o $@$(X)
endif