OSSP CVS Repository

ossp - Check-in [5665]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 5665
Date: 2006-Nov-20 20:29:27 (local)
2006-Nov-20 19:29:27 (UTC)
User:rse
Branch:
Comment: Support MacOS X (aka Darwin) in PostgreSQL bindings by passing a "-bundle_loader" option to the linker in order to resolve the "undefined symbols" problem.
Tickets:
#126 Patches for PostgreSQL 8.2 and Mac OS X
Inspections:
Files:
ossp-pkg/uuid/ChangeLog      1.136 -> 1.137     5 inserted, 0 deleted
ossp-pkg/uuid/pgsql/Makefile      1.3 -> 1.4     2 inserted, 0 deleted

ossp-pkg/uuid/ChangeLog 1.136 -> 1.137

--- ChangeLog    2006/11/20 19:27:51     1.136
+++ ChangeLog    2006/11/20 19:29:27     1.137
@@ -13,6 +13,11 @@
 
   Changes between 1.5.1 and 1.6.0 (31-Jul-2006 to 05-Oct-2006)
 
+   o Support MacOS X (aka Darwin) in PostgreSQL bindings by passing
+     a "-bundle_loader" option to the linker in order to resolve the
+     "undefined symbols" problem.
+     [David Wheeler <david@kineticode.com>, Ralf S. Engelschall]
+
    o Pass the correct type to PostgreSQL's errmsg().
      [David Wheeler <david@kineticode.com>, Ralf S. Engelschall]
 


ossp-pkg/uuid/pgsql/Makefile 1.3 -> 1.4

--- Makefile     2006/07/31 12:43:32     1.3
+++ Makefile     2006/11/20 19:29:27     1.4
@@ -14,6 +14,7 @@
 
 PG_CONFIG         ?= pg_config
 PGXS              := $(shell $(PG_CONFIG) --pgxs)
+POSTGRES          := $(shell $(PG_CONFIG) --bindir)/postgres
 top_builddir      := $(dir $(PGXS))../..
 include           $(top_builddir)/src/Makefile.global
     
@@ -25,6 +26,7 @@
 override CPPFLAGS := -I.. $(CPPFLAGS)
 SHLIB_LINK        := -L../.libs -luuid
 SHLIB_LINK        += $(shell test $(shell uname -s) = FreeBSD && echo "-Wl,-Bsymbolic")
+SHLIB_LINK        += $(shell test $(shell uname -s) = Darwin && echo "-bundle_loader $(POSTGRES)")
 rpath             :=
 
 all: uuid.sql all-lib

CVSTrac 2.0.1