Skip site navigation (1) Skip section navigation (2)

Re: [PATCHES] Makefile.PL for Pg.so

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Larry Rosenman <ler(at)lerctr(dot)org>, PostgreSQL Hackers List <pgsql-hackers(at)postgresql(dot)org>, <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [PATCHES] Makefile.PL for Pg.so
Date: 2001-09-07 18:51:48
Message-ID: Pine.LNX.4.30.0109072051350.680-100000@peter.localdomain (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Bruce Momjian writes:

> Can someone comment on this?

It's done.

>
>
> > I made the following patch, and it works for MY platform.
> >
> > Peter,
> >     Can we do something similar for the distribution to set the
> > RUNPATH for Pg.so?
> >
> >
> > Index: Makefile.PL
> > ===================================================================
> > RCS file: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/perl5/Makefile.PL,v
> > retrieving revision 1.17
> > diff -c -r1.17 Makefile.PL
> > *** Makefile.PL	2001/03/06 22:07:09	1.17
> > --- Makefile.PL	2001/08/13 04:12:28
> > ***************
> > *** 64,66 ****
> > --- 64,77 ----
> >   ];
> >
> >   }
> > + sub MY::dynamic_lib {
> > +       package MY;
> > +       my $inherited= shift->SUPER::dynamic_lib(@_);
> > +       if (! -d $ENV{POSTGRES_LIB} ) {
> > +        my $cwd = `pwd`;
> > +       chop $cwd;
> > +       $ENV{POSTGRES_LIB} = "$cwd/../libpq";
> > +       }
> > +       $inherited=~ s(at)OTHERLDFLAGS =(at)OTHERLDFLAGS =-R$ENV{POSTGRES_LIB}@;
> > +       $inherited;
> > + }
> >
> > --
> > Larry Rosenman                     http://www.lerctr.org/~ler
> > Phone: +1 972-414-9812                 E-Mail: ler(at)lerctr(dot)org
> > US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 2: you can get off all lists at once with the unregister command
> >     (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
> >
>
>

-- 
Peter Eisentraut   peter_e(at)gmx(dot)net   http://funkturm.homeip.net/~peter


In response to

pgsql-hackers by date

Next:From: Tom LaneDate: 2001-09-07 19:15:40
Subject: Re: Why "ERROR: dtoi4: integer out of range" on pg_dump
Previous:From: Bruce MomjianDate: 2001-09-07 18:48:42
Subject: Re: Makefile.PL for Pg.so

pgsql-patches by date

Next:From: Bruce MomjianDate: 2001-09-07 20:11:25
Subject: Re: encoding: ODBC, createdb
Previous:From: Bruce MomjianDate: 2001-09-07 18:48:42
Subject: Re: Makefile.PL for Pg.so

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group