Set rpath for plperl and plpython to ensure we can find the .so files
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 19 Nov 2004 19:23:01 +0000 (19:23 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 19 Nov 2004 19:23:01 +0000 (19:23 +0000)
for the languages even when not installed in a standard directory.
pltcl may need this treatment as well, but we don't have the right path
conveniently available, so I'll leave it alone as long as there aren't
actual reports of trouble.

src/pl/plperl/GNUmakefile
src/pl/plpython/Makefile

index 1095e11a39b5cffae0bb0ddc01afec275b1eff4d..548ebb1258c5924e8c99f6ab1cdaeed8ea9df93f 100644 (file)
@@ -25,6 +25,8 @@ endif
 
 override CPPFLAGS := -I$(srcdir) $(CPPFLAGS) -I$(perl_archlibexp)/CORE
 
+rpathdir = $(perl_archlibexp)/CORE
+
 
 NAME = plperl
 SO_MAJOR_VERSION = 0
index 69835cdaca43694669c8ef4f6530fcb9f6b81a9c..58e2016a559bb9b3eeb0fb01d1cacdcf1dbb8814 100644 (file)
@@ -33,7 +33,8 @@ endif
 ifneq (,$(findstring yes, $(shared_libpython)$(allow_nonpic_in_shlib)))
 
 override CPPFLAGS := -I$(srcdir) $(python_includespec) $(CPPFLAGS)
-rpath :=
+
+rpathdir = $(python_libdir)
 
 NAME = plpython
 SO_MAJOR_VERSION = 0