RE: Cross compiling and multiple sysroot question

2015-01-12 Thread Steve Ellcey
On Mon, 2015-01-12 at 20:58 +, Joseph Myers wrote: > On Mon, 12 Jan 2015, Matthew Fortune wrote: > > > MIPS does this too for mips64-linux-gnu as it has n32 for the default > > multilib which gets placed in lib32. I don't honestly know how the multilib > > spec doesn't end up building 4 multil

RE: Cross compiling and multiple sysroot question

2015-01-12 Thread Joseph Myers
On Mon, 12 Jan 2015, Matthew Fortune wrote: > MIPS does this too for mips64-linux-gnu as it has n32 for the default > multilib which gets placed in lib32. I don't honestly know how the multilib > spec doesn't end up building 4 multilibs though. I'm assuming the fact > that the default ABI is added

RE: Cross compiling and multiple sysroot question

2015-01-12 Thread Matthew Fortune
> On Mon, 12 Jan 2015, Steve Ellcey wrote: > > > MULTILIB_OSDIRNAMES += mips32r2=mipsr2/lib MULTILIB_OSDIRNAMES += > > .=mipsr2/lib > > > > I don't think the first one would work because -mips32r2 is the > > default architecture and is not explicitly listed in MULTILIB_OPTIONS > > and I don't thin

Re: Cross compiling and multiple sysroot question

2015-01-12 Thread Joseph Myers
On Mon, 12 Jan 2015, Steve Ellcey wrote: > MULTILIB_OSDIRNAMES += mips32r2=mipsr2/lib > MULTILIB_OSDIRNAMES += .=mipsr2/lib > > I don't think the first one would work because -mips32r2 is the default > architecture and is not explicitly listed in MULTILIB_OPTIONS and I > don't think the second fo

Re: Cross compiling and multiple sysroot question

2015-01-12 Thread Steve Ellcey
On Thu, 2015-01-08 at 22:12 +, Joseph Myers wrote: > On Thu, 8 Jan 2015, Steve Ellcey wrote: > > > So I set these macros and SPECs: > > # m32 and be are defaults > > MULTILIB_OPTIONS = m64 mel # In makefile fragment > > MULTILIB_DIRNAMES = 64 el #

Re: Cross compiling and multiple sysroot question

2015-01-08 Thread Joseph Myers
On Thu, 8 Jan 2015, Steve Ellcey wrote: > So I set these macros and SPECs: > # m32 and be are defaults > MULTILIB_OPTIONS = m64 mel # In makefile fragment > MULTILIB_DIRNAMES = 64 el # In makefile fragment > MULTILIB_OSDIRNAMES = m64=../lib

Cross compiling and multiple sysroot question

2015-01-08 Thread Steve Ellcey
(Reposting from gcc-help since I didn't get any replies there.) I have a question about SYSROOT_SUFFIX_SPEC, MULTILIB_OSDIRNAMES, and multilib cross compilers. I was experimenting with a multilib cross compiler and was using SYSROOT_SUFFIX_SPEC to specify different sysroots for different multilib