[patch] amd64, ppc64 - find 32bit system libraries

Matthias Klose doko@cs.tu-berlin.de
Sat Sep 8 21:55:00 GMT 2007


Joseph S. Myers writes:
> On Sat, 8 Sep 2007, Matthias Klose wrote:
> 
> > -MULTILIB_OSDIRNAMES = ../lib64 ../lib
> > +MULTILIB_OSDIRNAMES = ../lib64 $(if $(wildcard $(TARGET_SYSTEM_ROOT)/usr/lib32),../lib32,../lib)
> 
> TARGET_SYSTEM_ROOT is the configured location that will be used after 
> install.  You need to allow for --with-build-sysroot to get the location 
> used at build time.

now based the test in terms of SYSTEM_HEADER_DIR.


2007-09-08  Matthias Klose  <doko@debian.org>

	* config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
	multilib osdirname if it exists.
	* config/rs6000/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.

Index: gcc/config/i386/t-linux64
===================================================================
--- gcc/config/i386/t-linux64	(revision 128277)
+++ gcc/config/i386/t-linux64	(working copy)
@@ -6,7 +6,7 @@
 
 MULTILIB_OPTIONS = m64/m32
 MULTILIB_DIRNAMES = 64 32 
-MULTILIB_OSDIRNAMES = ../lib64 ../lib
+MULTILIB_OSDIRNAMES = ../lib64 $(if $(wildcard $(SYSTEM_HEADER_DIR)../../usr/lib32),../lib32,../lib)
 
 LIBGCC = stmp-multilib
 INSTALL_LIBGCC = install-multilib
Index: gcc/config/rs6000/t-linux64
===================================================================
--- gcc/config/rs6000/t-linux64	(revision 128277)
+++ gcc/config/rs6000/t-linux64	(working copy)
@@ -12,7 +12,7 @@
 MULTILIB_EXTRA_OPTS     = fPIC mstrict-align
 MULTILIB_EXCEPTIONS     = m64/msoft-float
 MULTILIB_EXCLUSIONS     = m64/!m32/msoft-float
-MULTILIB_OSDIRNAMES	= ../lib64 ../lib nof
+MULTILIB_OSDIRNAMES	= ../lib64 $(if $(wildcard $(SYSTEM_HEADER_DIR)/../../usr/lib32),../lib32,../lib) nof
 MULTILIB_MATCHES        = $(MULTILIB_MATCHES_FLOAT)
 
 softfp_wrap_start := '\#ifndef __powerpc64__'



More information about the Gcc-patches mailing list