postgres.git / summary / log / commit / refs

commit    da6c7aff1a0cc14966a3f528e60010e34200451b
Author:   Andrew Dunstan <andrew@dunslane.net>
Date:     Sat Jan 19 19:54:29 2013 +0000
First released in: 9.3.0, 8.3.23, 8.4.16, 9.0.12, 9.1.8, 9.2.3

    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.


src/makefiles/pgxs.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/makefiles/pgxs.mk b/src/makefiles/pgxs.mk index 24150388216..84e9071d165 100644 --- a/src/makefiles/pgxs.mk +++ b/src/makefiles/pgxs.mk @@ -290,5 +290,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 [parent: 92c1f917b865]