Re: Makefile.PL for Pg.so

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Larry Rosenman <ler(at)lerctr(dot)org>
Cc: PostgreSQL Hackers List <pgsql-hackers(at)postgresql(dot)org>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Makefile.PL for Pg.so
Date: 2001-09-07 18:48:42
Message-ID: 200109071848.f87Imgg02376@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches


Yes, thanks. Cleaning out my mailbox, as usualy before a beta.

> I think peter_e dealt with this....
>
> LER
>
> * Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> [010907 13:25]:
> >
> > Can someone comment on this?
> >
> >
> > > 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)
> > >
> >
> > --
> > Bruce Momjian | http://candle.pha.pa.us
> > pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
> > + If your life is a hard drive, | 830 Blythe Avenue
> > + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
>
> --
> 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
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2001-09-07 18:51:48 Re: [PATCHES] Makefile.PL for Pg.so
Previous Message Bruce Momjian 2001-09-07 18:48:13 Re: autoconf on server

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2001-09-07 18:51:48 Re: [PATCHES] Makefile.PL for Pg.so
Previous Message Larry Rosenman 2001-09-07 18:35:39 Re: Makefile.PL for Pg.so