]> granicus.if.org Git - postgresql/commitdiff
Switch order of -lpgport and -lpgcommon
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 16 Oct 2013 03:03:42 +0000 (23:03 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 16 Oct 2013 03:03:42 +0000 (23:03 -0400)
Conceptually, libpgcommon can depend on libpgport, but not the other way
around.  In the past, this might not have mattered, but it's needed now
for asprintf.

src/Makefile.global.in

index 96ef16396c839071d608cd0edaa27e50db742f94..b04d382674267abc497518015bd641b7a8935d4c 100644 (file)
@@ -410,10 +410,9 @@ libpq = -L$(libpq_builddir) -lpq
 # pgport before libpq.  This does cause duplicate -lpgport's to appear
 # on client link lines.
 ifdef PGXS
-libpq_pgport = -L$(libdir) -lpgport -lpgcommon $(libpq)
+libpq_pgport = -L$(libdir) -lpgcommon -lpgport $(libpq)
 else
-libpq_pgport = -L$(top_builddir)/src/port -lpgport \
-                          -L$(top_builddir)/src/common -lpgcommon $(libpq)
+libpq_pgport = -L$(top_builddir)/src/common -lpgcommon -L$(top_builddir)/src/port -lpgport $(libpq)
 endif
 
 # If PGXS is not defined, build libpq and libpgport dependancies as required.