Bruce Momjian wrote:
> Andrew Dunstan wrote:
> > 
> > 
> > Bruce Momjian wrote:
> > 
> > >
> > >Could this be related to the fact that pre-8.2 makefiles were not
> > >space-safe?  I am unsure how pgxs worked on Win32 without being
> > >space-safe.
> > >
> > >  
> > >
> > 
> > I don't see how. In fact, pgxs seems to use short form  paths anyway. 
> > Example (from previous email):
> > 
> > > dllwrap -o rainbow.dll --def rainbow.def rainbow.o
> > > c:/PROGRA~1/POSTGR~1/8.1/lib/pgxs/src/MAKEFI~1/../../src/utils/dllinit.o
> > > -Lc:/PROGRA~1/POSTGR~1/8.1/bin -lpostgres 
> > 
> > 
> > No spaces there. The problem is it says "bin" instead of "lib" before 
> > "-lpostgres".
> 
> OK, thanks.  Next question --- are the installed file locations the same
> for a MinGW install and a pginstaller install?  I don't think
> pginstaller does a MinGW install because it doesn't have the build
> environment in the tarball.
> 
> However, the big difference seems to be that Magnus has -Llib and -Lbin,
> while you have only the -Lbin.  I have MinGW and pginstaller installed
> here.  How can I set things up to test this?

Now looking at the Makefile.global in the 8.1.2 pginstaller install, in
Makefile.global, $libdir is set in a pgxs-specific block:

        libdir := $(shell pg_config --libdir)

and that seems to work:

        C:\Program Files\PostgreSQL\8.1\bin>pg_config --libdir
        C:/PROGRA~1/POSTGR~1/8.1/lib

and that is set to LDFLAGS, which is later propogated to SHLIB_LINK,
though SHLIB_LINK moves all the -L flags to the front, so what you see
on the link line is not the ordering used to create the value.

Andrew, can you try echoing $libdir and $SHLIB_LINK in the Makefile to
find those values?

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

Reply via email to