aboutsummaryrefslogtreecommitdiffstats
path: root/find-requires.in
diff options
context:
space:
mode:
Diffstat (limited to 'find-requires.in')
-rwxr-xr-xfind-requires.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/find-requires.in b/find-requires.in
index a926a3b..13f9994 100755
--- a/find-requires.in
+++ b/find-requires.in
@@ -163,6 +163,19 @@ fi
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" ] && \
echo $pythonlist | tr '[:blank:]' \\n | @RPMVENDORDIR@/python.req | sort -u