Alvaro Herrera wrote:

> Oh, another thing -- ecpg has a dependency on libpq, but it is not
> declared in Makefiles, so if you build ecpg without first building
> libpq, it errors out.

This seems to fix the problem, but I'd prefer a rule that declared the
dependency without recursing ... is there a way to do that?

-- 
Alvaro Herrera                         http://www.flickr.com/photos/alvherre/
"The West won the world not by the superiority of its ideas or values
or religion but rather by its superiority in applying organized violence.
Westerners often forget this fact, non-Westerners never do."
(Samuel P. Huntington)
Index: src/interfaces/ecpg/ecpglib/Makefile
===================================================================
RCS file: /home/alvherre/cvs/pgsql/src/interfaces/ecpg/ecpglib/Makefile,v
retrieving revision 1.62
diff -c -p -r1.62 Makefile
*** src/interfaces/ecpg/ecpglib/Makefile	14 Jan 2009 14:54:35 -0000	1.62
--- src/interfaces/ecpg/ecpglib/Makefile	30 Jan 2009 19:18:12 -0000
*************** ifeq ($(PORTNAME), win32)
*** 42,48 ****
  SHLIB_LINK += -lshfolder
  endif
  
! all: all-lib
  
  # Shared library stuff
  include $(top_srcdir)/src/Makefile.shlib
--- 42,54 ----
  SHLIB_LINK += -lshfolder
  endif
  
! all: libpq pgtypeslib all-lib
! 
! libpq:
! 	$(MAKE) -C $(top_builddir)/src/interfaces/libpq all
! 
! pgtypeslib:
! 	$(MAKE) -C $(top_builddir)/src/interfaces/ecpg/pgtypeslib all
  
  # Shared library stuff
  include $(top_srcdir)/src/Makefile.shlib
-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to