[v3] Fix cross compilation to Solaris

2017-05-30 Thread Rainer Orth
I recently tried a cross-build from sparc-sun-solaris2.12 to i386-pc-solaris2.12 (with cross-binutils and gas, but the native ld which has been a cross-linker for quite some time). The build failed in libstdc++-v3 like this: /vol/gcc/src/hg/trunk/local/libstdc++-v3/libsupc++/new_opa.cc:62:46: err

Re: [v3] Fix cross compilation to Solaris

2017-06-01 Thread Jonathan Wakely
On 30/05/17 15:10 +0200, Rainer Orth wrote: I recently tried a cross-build from sparc-sun-solaris2.12 to i386-pc-solaris2.12 (with cross-binutils and gas, but the native ld which has been a cross-linker for quite some time). The build failed in libstdc++-v3 like this: /vol/gcc/src/hg/trunk/loca

Re: [v3] Fix cross compilation to Solaris

2017-06-01 Thread Rainer Orth
Hi Jonathan, >>This way, config.h is identical between a native build and the cross >>above, with the exception of HAVE_SETENV which is equally guarded with >>GLIBCXX_IS_NATIVE in acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE). Maybe >>it's time to somehow refine the GLIBCXX_IS_NATIVE check to allow