From: | Larry Rosenman <ler(at)lerctr(dot)org> |
---|---|
To: | PostgreSQL Hackers List <pgsql-hackers(at)postgresql(dot)org> |
Cc: | pgsql-patches(at)postgresql(dot)org |
Subject: | Makefile.PL for Pg.so |
Date: | 2001-08-13 04:14:00 |
Message-ID: | 20010812231400.A14849@lerami.lerctr.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Tatsuo Ishii | 2001-08-13 04:49:15 | example program bug? |
Previous Message | Ross J. Reedstrom | 2001-08-13 03:13:46 | Re: Re: [PATCHES] Select parser at runtime |
From | Date | Subject | |
---|---|---|---|
Next Message | Ian Lance Taylor | 2001-08-13 04:51:55 | Re: Re: [PATCHES] Select parser at runtime |
Previous Message | Ross J. Reedstrom | 2001-08-13 03:13:46 | Re: Re: [PATCHES] Select parser at runtime |