From 6d76bca2135cb35aa72e3b785945d10436d047d2 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Tue, 11 Oct 2005 11:47:58 +0000 Subject: Insert an automatic dependency on libperl.so when building XS modules. This fixes the root cause of bugzilla #17967. --- find-requires.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'find-requires.in') diff --git a/find-requires.in b/find-requires.in index a926a3b..13f9994 100755 --- a/find-requires.in +++ b/find-requires.in @@ -162,6 +162,19 @@ fi [ -x @RPMVENDORDIR@/perl.req -a -n "$perllist" ] && \ echo $perllist | tr '[:blank:]' \\n | @RPMVENDORDIR@/perl.req | grep 'perl([A-Z]' | egrep -v 'perl\((Be|FreeBSD|HPUX|Mac|MSDOS|MVS|OS2|Riscos|SGI|Solaris|VMS|Win32|WinNT)' | sort -u +# +# --- If libperl.so exists and if XS modules are found, depend on libperl.so +if [ -n "$perllist" ]; then + if perl -V:useshrplib | grep -q true ; then + if echo $perllist | grep -q `perl -MConfig -e 'print $Config{archname}'` ; then + f=`perl -MConfig -e 'print $Config{archlib}'`/CORE/libperl.so + lib64=`if file -L $f 2>/dev/null | \ + grep "ELF 64-bit" >/dev/null; then echo "()$mark64"; fi` + echo libperl.so$lib64 + fi + fi +fi + # # --- Python modules. [ -x @RPMVENDORDIR@/python.req -a -n "$pythonlist" ] && \ -- cgit v1.2.1