aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-07-05 23:30:50 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-07-05 23:30:50 +0000
commitbdf00543c2a645b7a773cdcd81fbd4e38e64ee1c (patch)
tree25ccf3924114868eb031ea6f2552aaddd4354f73 /src
parentf9e9da666423f38d9c0f97277cf4e21973608baf (diff)
downloadpostgresql-bdf00543c2a645b7a773cdcd81fbd4e38e64ee1c.tar.gz
postgresql-bdf00543c2a645b7a773cdcd81fbd4e38e64ee1c.zip
Make sure LDFLAGS come before LIBS when linking contrib programs.
Solaris, at least, seems to be sensitive to the relative order of -L and -l switches, so this is needed. Per buildfarm results.
Diffstat (limited to 'src')
-rw-r--r--src/makefiles/pgxs.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/makefiles/pgxs.mk b/src/makefiles/pgxs.mk
index 0e629c0a5d9..36ac5be8dad 100644
--- a/src/makefiles/pgxs.mk
+++ b/src/makefiles/pgxs.mk
@@ -1,6 +1,6 @@
# PGXS: PostgreSQL extensions makefile
-# $PostgreSQL: pgsql/src/makefiles/pgxs.mk,v 1.20 2010/07/05 18:54:38 tgl Exp $
+# $PostgreSQL: pgsql/src/makefiles/pgxs.mk,v 1.21 2010/07/05 23:30:50 tgl Exp $
# This file contains generic rules to build many kinds of simple
# extension modules. You only need to set a few variables and include
@@ -286,5 +286,5 @@ endif
ifdef PROGRAM
$(PROGRAM): $(OBJS)
- $(CC) $(CFLAGS) $(OBJS) $(PG_LIBS) $(LIBS) $(LDFLAGS) $(LDFLAGS_EX) -o $@
+ $(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LDFLAGS_EX) $(PG_LIBS) $(LIBS) -o $@
endif