This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: how to build multi arch libstdc++
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Zhang hw <zhhw210095 at gmail dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Sat, 7 Sep 2013 09:52:29 +0100
- Subject: Re: how to build multi arch libstdc++
- Authentication-results: sourceware.org; auth=none
- References: <CAOpTfxmab1hby5G_Yp0jykZJaS35=tpq-DOE60cxNGg-5EaHBQ at mail dot gmail dot com>
On 7 September 2013 05:11, Zhang hw wrote:
> Hello , everybody!
> I have compiled and installed a gcc-4.8.1 with configure
> --build=x86_64-redhat-linux-gnu.There is a app need 32bit libstdc++
> now , but there is nothing in "lib" directory , how to build and
> install it?
x86_64-*-linux-gnu always builds a multilib compiler unless you use
--disable-multilib
> I have compiled with xxx/libstdc++-v3/configure
> --target=i686-redhat-linux-gnu and returned success , but after
> installed it , I've got only the libraries in directory "lib64" ,
> there was nothing in "lib" directory?
That doesn't make sense, i686-*-linux-gnu is a 32-bit non-multilib target.
> Can I compile and install a 32bit libstdc++ with parameters changing
> for configure and make install? Or , shall I build a cross compiler
> first?
As I said, just build on x86_64 without --disable-multilib