dragora-installer: apply fixes and minor changes
[dragora.git] / patches / perl / perl-linux-static.sh
blob769130d12d45eca9d168fc7c168500fdfd4d3dcb
1 --- hints/linux.sh.orig 2013-03-04 12:16:22.000000000 -0300
2 +++ hints/linux.sh 2013-05-08 11:28:30.000000000 -0300
3 @@ -66,10 +66,7 @@
4 # We don't use __GLIBC__ and __GLIBC_MINOR__ because they
5 # are insufficiently precise to distinguish things like
6 # libc-2.0.6 and libc-2.0.7.
7 -if test -L /lib/libc.so.6; then
8 - libc=`ls -l /lib/libc.so.6 | awk '{print $NF}'`
9 - libc=/lib/$libc
10 -fi
11 +libc=${prefix}/lib/libc.a
13 # Configure may fail to find lstat() since it's a static/inline
14 # function in <sys/stat.h>.
15 @@ -167,11 +164,7 @@
16 # we don't want its libraries. So we try to prefer the system gcc
17 # Still, as an escape hatch, allow Configure command line overrides to
18 # plibpth to bypass this check.
19 -if [ -x /usr/bin/gcc ] ; then
20 - gcc=/usr/bin/gcc
21 -else
22 - gcc=gcc
23 -fi
24 +gcc=gcc
26 case "$plibpth" in
27 '') plibpth=`LANG=C LC_ALL=C $gcc -print-search-dirs | grep libraries |
28 @@ -466,3 +459,8 @@
29 libswanted="$libswanted pthread"
31 esac
33 +locincpth=""
34 +loclibpth=""
35 +glibpth="${prefix}/lib"
36 +usrinc="${prefix}/include"