Unix Technical Forum

Link to pgport earlier

This is a discussion on Link to pgport earlier within the Pgsql Patches forums, part of the PostgreSQL category; --> I would like to apply this to CVS HEAD and 8.0.X so PG client applications link to the libpgport ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Patches

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 12:11 AM
Bruce Momjian
 
Posts: n/a
Default Link to pgport earlier

I would like to apply this to CVS HEAD and 8.0.X so PG client
applications link to the libpgport non-shared library before linking to
libpq so it doesn't pull libpgport symbols from libpq.

This should make PG client apps more immune to libpq/pgport changes in
each version.

--
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

Index: src/Makefile.global.in
================================================== =================
RCS file: /cvsroot/pgsql/src/Makefile.global.in,v
retrieving revision 1.209
diff -c -c -r1.209 Makefile.global.in
*** src/Makefile.global.in 26 Jan 2005 19:23:59 -0000 1.209
--- src/Makefile.global.in 11 Mar 2005 21:21:15 -0000
***************
*** 306,312 ****
libpq_builddir = $(top_builddir)/src/interfaces/libpq
endif

! libpq = -L$(libpq_builddir) -lpq

# If doing static linking, shared library dependency can't be
# used so we specify pthread libs for every usage of libpq
--- 306,321 ----
libpq_builddir = $(top_builddir)/src/interfaces/libpq
endif

! # We need client applications to pull from libpgport rather than getting
! # the same symbols from libpq's copy of pgport. This makes applications
! # bind to libpq symbols only based on the API and not pgport.
! # To do this we make sure pgport is linked to first, before libpq.
! # This does cause duplicate -lpgport's to appear on client link lines.
! ifdef PGXS
! libpq = -L$(libdir) -lpgport -L$(libpq_builddir) -lpq
! else
! libpq = -L$(top_builddir)/src/port -lpgport -L$(libpq_builddir) -lpq
! endif

# If doing static linking, shared library dependency can't be
# used so we specify pthread libs for every usage of libpq


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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:33 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com