File postgresql-plperl-keep-rpath.patch of Package postgresql12 (Revision ef4141f5efddf779be02d4235dfdc3a7)
Currently displaying revision ef4141f5efddf779be02d4235dfdc3a7 , Show latest
35
1
This patch keeps PosgreSQL's configure script from removing the rpath from
2
Perl's linker options, because otherwise the PL/Perl module can't find
3
libperl.so (bsc#578053).
4
5
Index: config/perl.m4
6
===================================================================
7
--- config/perl.m4.orig
8
+++ config/perl.m4
9
10
fi
11
fi
12
else
13
- pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
14
- pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
15
- perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e ["s/ -arch [-a-zA-Z0-9_]*//g"]`
16
+ perl_embed_ldflags=`$PERL -MExtUtils::Embed -e ldopts`
17
fi
18
AC_SUBST(perl_embed_ldflags)dnl
19
if test -z "$perl_embed_ldflags" ; then
20
Index: configure
21
===================================================================
22
--- configure.orig
23
+++ configure
24
25
fi
26
fi
27
else
28
- pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
29
- pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
30
- perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
31
+ perl_embed_ldflags=`$PERL -MExtUtils::Embed -e ldopts`
32
fi
33
if test -z "$perl_embed_ldflags" ; then
34
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35