Re: pgxs/windows

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: pgxs/windows
Дата
Msg-id 200601190448.k0J4m9027872@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: pgxs/windows  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: pgxs/windows  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
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 --libdirC:/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,
Pennsylvania19073
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: suppress output for benchmarking
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Surrogate keys (Was: enums)