Skip to content
Snippets Groups Projects
Commit bdf00543 authored by Tom Lane's avatar Tom Lane
Browse files

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.
parent f9e9da66
No related branches found
No related tags found
No related merge requests found
# PGXS: PostgreSQL extensions makefile # 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 # This file contains generic rules to build many kinds of simple
# extension modules. You only need to set a few variables and include # extension modules. You only need to set a few variables and include
...@@ -286,5 +286,5 @@ endif ...@@ -286,5 +286,5 @@ endif
ifdef PROGRAM ifdef PROGRAM
$(PROGRAM): $(OBJS) $(PROGRAM): $(OBJS)
$(CC) $(CFLAGS) $(OBJS) $(PG_LIBS) $(LIBS) $(LDFLAGS) $(LDFLAGS_EX) -o $@ $(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LDFLAGS_EX) $(PG_LIBS) $(LIBS) -o $@
endif endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment