projects/aports·blob master · refs

22 lines · 912 B

1We configure Postgres with --disable-rpath because for the most part we
2want to leave it to ldconfig to determine where libraries are. However,
3for some reason the Perl package puts libperl.so in a nonstandard place
4and doesn't add that place to the ldconfig search path. I think this
5is a Perl packaging bug, myself, but apparently it's not going to change.
6So work around it by adding an rpath spec to plperl.so (only).
7
8Alpine notes:
9This patch is copied from Fedora.
10
11--- a/src/pl/plperl/GNUmakefile
12+++ b/src/pl/plperl/GNUmakefile
13@@ -60,6 +60,9 @@
14 SHLIB_LINK += -Wl,--export-all-symbols
15 endif
16
17+# Force rpath to be used even though we disable it everywhere else
18+SHLIB_LINK += $(rpath)
19+
20 REGRESS_OPTS = --dbname=$(PL_TESTDB) --dlpath=$(top_builddir)/src/test/regress
21 REGRESS = plperl_setup plperl plperl_lc plperl_trigger plperl_shared \
22 plperl_elog plperl_util plperl_init plperlu plperl_array \