~ubuntu-branches/ubuntu/lucid/gcc-4.2/lucid

« back to all changes in this revision

Viewing changes to debian/patches/multiarch-lib.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-07-27 11:42:07 UTC
  • mfrom: (0.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080727114207-3tdztfgfz2yjcxmh
Tags: 4.2.4-3ubuntu1
* Merge with Debian; remaining changes:
  - Built from upstram tarball, regenerate control file.
* gij/gcj: Don't remove alternatives on upgrade. Addresses: #479950.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh -e
2
 
 
3
 
# multiarch-lib.dpatch by Stephen Frost <sfrost@debian.org>
4
 
 
5
 
dir=
6
 
if [ $# -eq 3 -a "$2" = '-d' ]; then
7
 
    pdir="-d $3"
8
 
    dir="$3/"
9
 
elif [ $# -ne 1 ]; then
10
 
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
11
 
    exit 1
12
 
fi
13
 
case "$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
23
 
esac
24
 
exit 0
25
 
 
26
 
diff -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
38
 
diff -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
 
+