summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/perl/perl-5.12.2/Configure-multilib.patch
blob: 6a4125b89bd8fc7eb5d13f56673c1291329cbf9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Upstream-Status:Pending

Index: perl-5.12.2/Configure
===================================================================
--- perl-5.12.2.orig/Configure
+++ perl-5.12.2/Configure
@@ -1316,8 +1316,9 @@ loclibpth="/usr/local/lib /opt/local/lib
 loclibpth="$loclibpth /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib"
 
 : general looking path for locating libraries
-glibpth="/lib /usr/lib $xlibpth"
+glibpth="/lib /usr/lib /lib64 /usr/lib64 $xlibpth"
 glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib"
+test -f /usr/lib/`uname -m`-linux-gnu/libc.so && glibpth="/usr/lib/`uname -m`-linux-gnu $glibpth"
 test -f /usr/shlib/libc.so && glibpth="/usr/shlib $glibpth"
 test -f /shlib/libc.so     && glibpth="/shlib $glibpth"
 test -d /usr/lib64         && glibpth="$glibpth /lib64 /usr/lib64 /usr/local/lib64"