Re: Re: [PATCHES] patch for minor Win32 makefile bug - Mailing list pgsql-ports

From Peter Eisentraut
Subject Re: Re: [PATCHES] patch for minor Win32 makefile bug
Date
Msg-id Pine.LNX.4.30.0104040008080.974-100000@peter.localdomain
Whole thread Raw
In response to Re: Re: [PATCHES] patch for minor Win32 makefile bug  (Fred Yankowski <fred@ontosys.com>)
Responses Re: Re: [PATCHES] patch for minor Win32 makefile bug
List pgsql-ports
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/


pgsql-ports by date:

Previous
From: Tom Lane
Date:
Subject: Re: Re: [PATCHES] patch for minor Win32 makefile bug
Next
From: Jason Tishler
Date:
Subject: Re: Re: [PATCHES] patch for minor Win32 makefile bug