Re: Revert addition of -lpgport, which breaks the build

Поиск
Список
Период
Сортировка
Искать
От
Neil Conway
Тема
Re: Revert addition of -lpgport, which breaks the build
Дата
в 22:07:25
Msg-id
40AD562F.7020606@samurai.com
Ответ на
Список
Дерево обсуждения
Revert addition of -lpgport, which breaks the build on platforms that tgl@svr1.postgresql.org (Tom Lane)
Re: Revert addition of -lpgport, which breaks the build Bruce Momjian <pgman@candle.pha.pa.us>
Re: Revert addition of -lpgport, which breaks the build Neil Conway <neilc@samurai.com>
Re: Revert addition of -lpgport, which breaks the build Bruce Momjian <pgman@candle.pha.pa.us>
Re: Revert addition of -lpgport, which breaks the build Tom Lane <tgl@sss.pgh.pa.us>
Re: Revert addition of -lpgport, which breaks the build Bruce Momjian <pgman@candle.pha.pa.us>
Re: Revert addition of -lpgport, which breaks the build Tom Lane <tgl@sss.pgh.pa.us>
Re: Revert addition of -lpgport, which breaks the build Bruce Momjian <pgman@candle.pha.pa.us>
Tom Lane wrote:
> Revert addition of -lpgport, which breaks the build on platforms that
> are sticky about non-PIC code in shared libraries.  Windows will have
> to find another solution (probably similar to the way libpq does it).

I need to apply the attached patch to get ecpg to link successfully on 
my machine (OSX 10.3). Is this a known issue?

-Neil
Index: src/interfaces/ecpg/ecpglib/Makefile
===================================================================
RCS file: /Users/neilc/local/cvs/pgsql-server/src/interfaces/ecpg/ecpglib/Makefile,v
retrieving revision 1.19
diff -c -r1.19 Makefile
*** src/interfaces/ecpg/ecpglib/Makefile	21 May 2004 00:14:38 -0000	1.19
--- src/interfaces/ecpg/ecpglib/Makefile	21 May 2004 00:47:23 -0000
***************
*** 23,29 ****
  OBJS= execute.o typename.o descriptor.o data.o error.o prepare.o memory.o \
  	connect.o misc.o
  
! SHLIB_LINK = -L../pgtypeslib -lpgtypes $(libpq) \
  	$(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS)) $(PTHREAD_LIBS)
  
  all: all-lib
--- 23,29 ----
  OBJS= execute.o typename.o descriptor.o data.o error.o prepare.o memory.o \
  	connect.o misc.o
  
! SHLIB_LINK = -L../pgtypeslib -lpgtypes -lpgport $(libpq) \
  	$(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS)) $(PTHREAD_LIBS)
  
  all: all-lib
Index: src/interfaces/ecpg/compatlib/Makefile
===================================================================
RCS file: /Users/neilc/local/cvs/pgsql-server/src/interfaces/ecpg/compatlib/Makefile,v
retrieving revision 1.17
diff -c -r1.17 Makefile
*** src/interfaces/ecpg/compatlib/Makefile	30 Apr 2004 04:14:05 -0000	1.17
--- src/interfaces/ecpg/compatlib/Makefile	21 May 2004 00:48:08 -0000
***************
*** 19,25 ****
  override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) \
  	-I$(top_srcdir)/src/include/utils $(CPPFLAGS)
  override CFLAGS += $(PTHREAD_CFLAGS)
! SHLIB_LINK = -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes $(libpq) \
  	$(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS)) $(PTHREAD_LIBS)
  
  OBJS= informix.o
--- 19,25 ----
  override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) \
  	-I$(top_srcdir)/src/include/utils $(CPPFLAGS)
  override CFLAGS += $(PTHREAD_CFLAGS)
! SHLIB_LINK = -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes -lpgport $(libpq) \
  	$(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS)) $(PTHREAD_LIBS)
  
  OBJS= informix.o
В списке pgsql-committers по дате отправления
От: tgl@svr1.postgresql.org (Tom Lane)
Дата:
От: momjian@svr1.postgresql.org (Bruce Momjian)
Дата:
FAQ