Fred Yankowski writes:
> I don't understand the several uses of DLLLIBS as well as I'd like,
> but here's what I think is going on.
>
> In makefiles/Makefile.win, DLLLIBS lists the libraries needed to build
> the various DLLs associated with the interfaces/* and pl/plpgsql
> directories. As such it includes '-L$(top_builddir)/src/backend -lpostgres'
> as well as several Cygwin utility libraries.
>
> In backend/Makefile, DLLLIBS lists the libraries needed to build
> postgres.exe. This does not include '-lpostgres' since postgres.exe
> is built by linking exactly the backend object files that also go into
> libpostgres.a. (I don't understand this organization.)
ISTM that $(DLLLIBS) in backend/Makefile should be replaced by
$(LDFLAGS) -lcygipc -lcygwin -lkernel32 $(LIBS)
(Presuming that these three libraries are actually needed. Why isn't
every program linked against -lcygwin?)
--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/