summaryrefslogtreecommitdiffstats
path: root/meta/packages/gcc/gcc-4.3.1/debian/multiarch-lib.dpatch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gcc/gcc-4.3.1/debian/multiarch-lib.dpatch')
-rw-r--r--meta/packages/gcc/gcc-4.3.1/debian/multiarch-lib.dpatch52
1 files changed, 52 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-4.3.1/debian/multiarch-lib.dpatch b/meta/packages/gcc/gcc-4.3.1/debian/multiarch-lib.dpatch
new file mode 100644
index 0000000000..93ba09fa39
--- /dev/null
+++ b/meta/packages/gcc/gcc-4.3.1/debian/multiarch-lib.dpatch
@@ -0,0 +1,52 @@
1#! /bin/sh -e
2
3# multiarch-lib.dpatch by Stephen Frost <sfrost@debian.org>
4
5dir=
6if [ $# -eq 3 -a "$2" = '-d' ]; then
7 pdir="-d $3"
8 dir="$3/"
9elif [ $# -ne 1 ]; then
10 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
11 exit 1
12fi
13case "$1" in
14 -patch)
15 patch $pdir -f --no-backup-if-mismatch -p0 < $0
16 ;;
17 -unpatch)
18 patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
19 ;;
20 *)
21 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
22 exit 1
23esac
24exit 0
25
26diff -urN gcc.old/config/i386/t-linux64 gcc/config/i386/t-linux64
27--- gcc.old/config/i386/t-linux64 2002-11-28 15:47:02.000000000 +0100
28+++ gcc/config/i386/t-linux64 2004-07-10 07:28:01.000000000 +0200
29@@ -6,7 +6,7 @@
30
31 MULTILIB_OPTIONS = m64/m32
32 MULTILIB_DIRNAMES = 64 32
33-MULTILIB_OSDIRNAMES = ../lib64 ../lib
34+MULTILIB_OSDIRNAMES = x86_64-linux i486-linux
35
36 LIBGCC = stmp-multilib
37 INSTALL_LIBGCC = install-multilib
38diff -urN gcc.old/config/t-linux gcc/config/t-linux
39--- gcc.old/config/t-linux 2004-05-04 18:09:38.000000000 +0200
40+++ gcc/config/t-linux 2004-07-10 07:28:01.000000000 +0200
41@@ -11,3 +11,11 @@
42 LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde-glibc.c \
43 $(srcdir)/unwind-sjlj.c $(srcdir)/gthr-gnat.c $(srcdir)/unwind-c.c
44 LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c
45+
46+MULTILIB_OPTIONS = m32
47+MULTILIB_DIRNAMES = 32
48+MULTILIB_OSDIRNAMES = $TARGET_ARCH
49+
50+LIBGCC = stmp-multilib
51+INSTALL_LIBGCC = install-multilib
52+