aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2013-01-19 14:54:29 -0500
committerAndrew Dunstan <andrew@dunslane.net>2013-01-19 14:54:29 -0500
commit9f10f7dc573401b1eb7cdf1e3cf4f1967bbbccce (patch)
tree725a5eb88deb4fa7d9304b948d4eede067180c9a
parentfb197290c1f25d8b7f35bc2bc7144eeaf603687c (diff)
downloadpostgresql-9f10f7dc573401b1eb7cdf1e3cf4f1967bbbccce.tar.gz
postgresql-9f10f7dc573401b1eb7cdf1e3cf4f1967bbbccce.zip
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 8acfe05813d..bbcfe048644 100644
--- a/src/makefiles/pgxs.mk
+++ b/src/makefiles/pgxs.mk
@@ -296,5 +296,5 @@ endif
ifdef PROGRAM
$(PROGRAM): $(OBJS)
- $(CC) $(CFLAGS) $(OBJS) $(PG_LIBS) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@
+ $(CC) $(CFLAGS) $(OBJS) $(PG_LIBS) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
endif