diff options
Diffstat (limited to 'meta/recipes-devtools/perl/perl-5.14.2/debian/fixes/hurd-hints.diff')
-rw-r--r-- | meta/recipes-devtools/perl/perl-5.14.2/debian/fixes/hurd-hints.diff | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl-5.14.2/debian/fixes/hurd-hints.diff b/meta/recipes-devtools/perl/perl-5.14.2/debian/fixes/hurd-hints.diff new file mode 100644 index 0000000000..1ba9cbd7a4 --- /dev/null +++ b/meta/recipes-devtools/perl/perl-5.14.2/debian/fixes/hurd-hints.diff | |||
@@ -0,0 +1,48 @@ | |||
1 | From d6fd7595fcd04b332e7449f59ea298639f10a183 Mon Sep 17 00:00:00 2001 | ||
2 | From: Pino Toscano <pino@debian.org> | ||
3 | Date: Wed, 10 Aug 2011 08:11:33 +0300 | ||
4 | Subject: Improve general GNU hints, needed for GNU/Hurd. | ||
5 | |||
6 | Bug-Debian: http://bugs.debian.org/636609 | ||
7 | |||
8 | Patch-Name: fixes/hurd-hints.diff | ||
9 | --- | ||
10 | ext/ODBM_File/hints/gnu.pl | 1 + | ||
11 | hints/gnu.sh | 12 ++++++++++++ | ||
12 | 2 files changed, 13 insertions(+), 0 deletions(-) | ||
13 | create mode 100644 ext/ODBM_File/hints/gnu.pl | ||
14 | |||
15 | diff --git a/ext/ODBM_File/hints/gnu.pl b/ext/ODBM_File/hints/gnu.pl | ||
16 | new file mode 100644 | ||
17 | index 0000000..db63567 | ||
18 | --- /dev/null | ||
19 | +++ b/ext/ODBM_File/hints/gnu.pl | ||
20 | @@ -0,0 +1 @@ | ||
21 | +do './hints/linux.pl' or die $@; | ||
22 | diff --git a/hints/gnu.sh b/hints/gnu.sh | ||
23 | index c1ba2db..f075642 100644 | ||
24 | --- a/hints/gnu.sh | ||
25 | +++ b/hints/gnu.sh | ||
26 | @@ -8,10 +8,22 @@ set `echo X "$libswanted "| sed -e 's/ nsl / /' -e 's/ c / pthread /'` | ||
27 | shift | ||
28 | libswanted="$*" | ||
29 | |||
30 | +# Debian 4.0 puts ndbm in the -lgdbm_compat library. | ||
31 | +libswanted="$libswanted gdbm_compat" | ||
32 | + | ||
33 | case "$optimize" in | ||
34 | '') optimize='-O2' ;; | ||
35 | esac | ||
36 | |||
37 | +case "$plibpth" in | ||
38 | +'') plibpth=`gcc -print-search-dirs | grep libraries | | ||
39 | + cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'` | ||
40 | + set X $plibpth # Collapse all entries on one line | ||
41 | + shift | ||
42 | + plibpth="$*" | ||
43 | + ;; | ||
44 | +esac | ||
45 | + | ||
46 | # Flags needed to produce shared libraries. | ||
47 | lddlflags='-shared' | ||
48 | |||