diff options
-rwxr-xr-x | find-requires.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/find-requires.in b/find-requires.in index 8d86350..a073ed1 100755 --- a/find-requires.in +++ b/find-requires.in @@ -166,10 +166,13 @@ fi echo $perllist | tr '[:blank:]' \\n | @RPMVENDORDIR@/perl.req | grep 'perl([[:upper:]]' | 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 libperl.so exists and if XS modules are found, depend on perlapi-<version> and 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 + version=`perl -MConfig -e 'print $Config{version}'` + echo perlapi-$version + 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` |