Re: [PATCHES] pgxs patch for win32 (v2)

2004-11-18 Thread Thomas Hallgren
Tom Lane wrote:
Fabien COELHO [EMAIL PROTECTED] writes:
please find attached a very small patch which:
 - install win32 headers on make install
 - install libpostgres.a library under win32 by default (MAKE_DLL=true)
 - fix CPPFLAGS under win32 to look for these added header under PGXS

Applied.
Works like a charm.
Thanks,
Thomas Hallgren
---(end of broadcast)---
TIP 5: Have you checked our extensive FAQ?
  http://www.postgresql.org/docs/faqs/FAQ.html


Re: [PATCHES] pgxs patch for win32 (v2)

2004-11-17 Thread Tom Lane
Fabien COELHO [EMAIL PROTECTED] writes:
 please find attached a very small patch which:
   - install win32 headers on make install
   - install libpostgres.a library under win32 by default (MAKE_DLL=true)
   - fix CPPFLAGS under win32 to look for these added header under PGXS

Applied.

regards, tom lane

---(end of broadcast)---
TIP 6: Have you searched our list archives?

   http://archives.postgresql.org


[PATCHES] pgxs patch for win32 (v2)

2004-11-07 Thread Fabien COELHO
Dear patchers,
please find attached a very small patch which:
 - install win32 headers on make install
 - install libpostgres.a library under win32 by default (MAKE_DLL=true)
 - fix CPPFLAGS under win32 to look for these added header under PGXS
it was tested by Thomas Hallgren to build PL/Java with pgxs.
it may interfere a little bit with Alvaro's patch about 
the now useless remove-all-headers target in src/include/Makefile

still open question:
 - should the MAKE_DLL macro be set by default under cygwin?
 - what is the rationnal for this macro? is it still needed?
Have a nice day,
--
Fabien Coelho - [EMAIL PROTECTED]*** ./src/include/Makefile.orig Wed Nov  3 10:32:29 2004
--- ./src/include/Makefile  Sun Nov  7 11:14:52 2004
***
*** 18,24 
  
  # Subdirectories containing headers for server-side dev
  SUBDIRS = access bootstrap catalog commands executor lib libpq mb \
!   nodes optimizer parser port regex rewrite storage tcop utils
  
  # Install all headers
  install: all installdirs remove-old-headers
--- 18,25 
  
  # Subdirectories containing headers for server-side dev
  SUBDIRS = access bootstrap catalog commands executor lib libpq mb \
!   nodes optimizer parser port regex rewrite storage tcop utils \
!   port port/win32 port/win32/arpa port/win32/netinet port/win32/sys
  
  # Install all headers
  install: all installdirs remove-old-headers
*** ./src/makefiles/Makefile.win32.orig Thu Oct 28 08:24:17 2004
--- ./src/makefiles/Makefile.win32  Sun Nov  7 10:44:58 2004
***
*** 35,37 
--- 35,48 
  ifneq (,$(findstring src/pl/plpython,$(subdir)))
  override CPPFLAGS+= -DUSE_DL_IMPORT
  endif
+ 
+ # special win32 headers are provided here
+ ifdef PGXS
+ override CPPFLAGS+= -I$(includedir_server)/port/win32
+ endif
+ 
+ # it is better to install shared-libraries anyway?
+ # may be overriden with make MAKE_DLL=false install
+ ifndef MAKE_DLL
+ MAKE_DLL  = true
+ endif

---(end of broadcast)---
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]