diff options
Diffstat (limited to 'meta/packages/gcc/gcc-4.3.1/debian/powerpc-biarch.dpatch')
-rw-r--r-- | meta/packages/gcc/gcc-4.3.1/debian/powerpc-biarch.dpatch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-4.3.1/debian/powerpc-biarch.dpatch b/meta/packages/gcc/gcc-4.3.1/debian/powerpc-biarch.dpatch new file mode 100644 index 0000000000..a1d2a727a9 --- /dev/null +++ b/meta/packages/gcc/gcc-4.3.1/debian/powerpc-biarch.dpatch | |||
@@ -0,0 +1,47 @@ | |||
1 | #! /bin/sh -e | ||
2 | |||
3 | # DP: enable biarch for 32 bit compiler | ||
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 | --- gcc/config/rs6000/t-linux64.orig 2007-09-29 16:03:54.000000000 +0000 | ||
27 | +++ gcc/config/rs6000/t-linux64 2007-09-30 10:36:47.000000000 +0000 | ||
28 | @@ -14,13 +14,13 @@ | ||
29 | # it doesn't tell anything about the 32bit libraries on those systems. Set | ||
30 | # MULTILIB_OSDIRNAMES according to what is found on the target. | ||
31 | |||
32 | -MULTILIB_OPTIONS = m64/m32 msoft-float | ||
33 | -MULTILIB_DIRNAMES = 64 32 nof | ||
34 | +MULTILIB_OPTIONS = m64/m32 | ||
35 | +MULTILIB_DIRNAMES = 64 32 | ||
36 | MULTILIB_EXTRA_OPTS = fPIC mstrict-align | ||
37 | -MULTILIB_EXCEPTIONS = m64/msoft-float | ||
38 | -MULTILIB_EXCLUSIONS = m64/!m32/msoft-float | ||
39 | -MULTILIB_OSDIRNAMES = ../lib64 $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib) nof | ||
40 | -MULTILIB_MATCHES = $(MULTILIB_MATCHES_FLOAT) | ||
41 | +MULTILIB_EXCEPTIONS = | ||
42 | +MULTILIB_EXCLUSIONS = | ||
43 | +MULTILIB_OSDIRNAMES = ../lib64 $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib) | ||
44 | +MULTILIB_MATCHES = | ||
45 | |||
46 | softfp_wrap_start := '\#ifndef __powerpc64__' | ||
47 | softfp_wrap_end := '\#endif' | ||