From: Andrew Dunstan Date: Sat, 19 Jan 2013 19:54:29 +0000 (-0500) Subject: Make pgxs build executables with the right suffix. X-Git-Tag: REL8_3_23~9 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=237dc2d783b0c0856a5f97c338c71aa805b0acfc;p=postgresql.git 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. --- diff --git a/src/makefiles/pgxs.mk b/src/makefiles/pgxs.mk index 331e32d9a21..a6e980a12ef 100644 --- a/src/makefiles/pgxs.mk +++ b/src/makefiles/pgxs.mk @@ -276,5 +276,5 @@ endif ifdef PROGRAM $(PROGRAM): $(OBJS) - $(CC) $(CFLAGS) $(OBJS) $(PG_LIBS) $(LDFLAGS) $(LIBS) -o $@ + $(CC) $(CFLAGS) $(OBJS) $(PG_LIBS) $(LDFLAGS) $(LIBS) -o $@$(X) endif