~ubuntu-branches/debian/experimental/gcc-4.5/experimental

« back to all changes in this revision

Viewing changes to debian/patches/gcc-multilibdir.diff

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-09-25 14:11:39 UTC
  • Revision ID: james.westby@ubuntu.com-20100925141139-nnplv0s02odlnfej
Tags: 4.5.1-8
* Update to SVN 20100925 (r164618) from the gcc-4_5-branch.
  - Fix PR middle-end/44763, PR java/44095, PR target/35664,
    PR rtl-optimization/41085, PR rtl-optimization/45051,
    PR target/45694, PR middle-end/45678, PR middle-end/45678,
    PR middle-end/45704, PR rtl-optimization/45728, PR libfortran/45532,
    PR rtl-optimization/45695, PR rtl-optimization/42775, PR target/45726,
    PR tree-optimization/45623, PR tree-optimization/45709, PR debug/43628,
    PR tree-optimization/45709, PR rtl-optimization/45593, PR fortran/45081,
* Find 32bit system libraries on sparc64, s390x.
* Remove README.Debian from the source package to avoid confusion for
  readers of the packaging.
* Don't include info files and man pages in hppa64 and spu builds.
  Closes: #597435.
* Apply proposed patch for PR mudflap/24619 (instrumentation of dlopen)
  (Brian M. Carlson) Closes: #507514.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: sparc64, s390x - find 32bit system libraries
 
2
 
 
3
2010-09-25  Matthias Klose  <doko@ubuntu.com>
 
4
 
 
5
        * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
 
6
        multilib osdirname if it exists.
 
7
        * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
 
8
 
 
9
Index: gcc/config/s390/t-linux64
 
10
===================================================================
 
11
--- a/src/gcc/config/s390/t-linux64     (revision 164618)
 
12
+++ b/src/gcc/config/s390/t-linux64     (working copy)
 
13
@@ -1,3 +1,10 @@
 
14
+# On Debian, Ubuntu and other derivative distributions, the 32bit libraries
 
15
+# are found in /lib32 and /usr/lib32, /lib64 and /usr/lib64 are symlinks to
 
16
+# /lib and /usr/lib, while other distributions install libraries into /lib64
 
17
+# and /usr/lib64.  The LSB does not enforce the use of /lib64 and /usr/lib64,
 
18
+# it doesn't tell anything about the 32bit libraries on those systems.  Set
 
19
+# MULTILIB_OSDIRNAMES according to what is found on the target.
 
20
+
 
21
 MULTILIB_OPTIONS = m64/m31
 
22
 MULTILIB_DIRNAMES = 64 32
 
23
-MULTILIB_OSDIRNAMES = ../lib64 ../lib
 
24
+MULTILIB_OSDIRNAMES = ../lib64 $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)
 
25
Index: gcc/config/sparc/t-linux64
 
26
===================================================================
 
27
--- a/src/gcc/config/sparc/t-linux64    (revision 164618)
 
28
+++ b/src/gcc/config/sparc/t-linux64    (working copy)
 
29
@@ -17,9 +17,16 @@
 
30
 # along with GCC; see the file COPYING3.  If not see
 
31
 # <http://www.gnu.org/licenses/>.
 
32
 
 
33
+# On Debian, Ubuntu and other derivative distributions, the 32bit libraries
 
34
+# are found in /lib32 and /usr/lib32, /lib64 and /usr/lib64 are symlinks to
 
35
+# /lib and /usr/lib, while other distributions install libraries into /lib64
 
36
+# and /usr/lib64.  The LSB does not enforce the use of /lib64 and /usr/lib64,
 
37
+# it doesn't tell anything about the 32bit libraries on those systems.  Set
 
38
+# MULTILIB_OSDIRNAMES according to what is found on the target.
 
39
+
 
40
 MULTILIB_OPTIONS = m64/m32
 
41
 MULTILIB_DIRNAMES = 64 32
 
42
-MULTILIB_OSDIRNAMES = ../lib64 ../lib
 
43
+MULTILIB_OSDIRNAMES = ../lib64 $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)
 
44
 
 
45
 LIBGCC = stmp-multilib
 
46
 INSTALL_LIBGCC = install-multilib