Switch order of -lpgport and -lpgcommon
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.
This commit is contained in:
parent
90c7b7d16b
commit
63f32f3416
|
@ -410,10 +410,9 @@ libpq = -L$(libpq_builddir) -lpq
|
||||||
# pgport before libpq. This does cause duplicate -lpgport's to appear
|
# pgport before libpq. This does cause duplicate -lpgport's to appear
|
||||||
# on client link lines.
|
# on client link lines.
|
||||||
ifdef PGXS
|
ifdef PGXS
|
||||||
libpq_pgport = -L$(libdir) -lpgport -lpgcommon $(libpq)
|
libpq_pgport = -L$(libdir) -lpgcommon -lpgport $(libpq)
|
||||||
else
|
else
|
||||||
libpq_pgport = -L$(top_builddir)/src/port -lpgport \
|
libpq_pgport = -L$(top_builddir)/src/common -lpgcommon -L$(top_builddir)/src/port -lpgport $(libpq)
|
||||||
-L$(top_builddir)/src/common -lpgcommon $(libpq)
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# If PGXS is not defined, build libpq and libpgport dependancies as required.
|
# If PGXS is not defined, build libpq and libpgport dependancies as required.
|
||||||
|
|
Loading…
Reference in New Issue