This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: lib and lib64 on x86_64 arch, how to change?
- From: Andrew Haley <aph at redhat dot com>
- To: Leonid Petrov <user3 at lpetrov dot net>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 30 Dec 2008 10:00:53 +0000
- Subject: Re: lib and lib64 on x86_64 arch, how to change?
- References: <49594259.nailGPE119LIO@lpetrov.net>
Leonid Petrov wrote:
> Hello,
>
> I compile gcc-4.3.2 on x86_64 processor, 64-bit Linux and
> configure gcc as ../configure --prefix=$G/opt --enable-shared \
> --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu \
> --with-mpfr=$G/opt --with-gmp=$G/opt
> --enable-languages=c,c++,fortran,java,objc,obj-c++
>
> When I run make install, among others, two directories are created:
> $G/opt/lib with legacy 32-bit libraries and $G/opt/lib64
> with 64-bit libraries. My question is how I can force
> the build process to put 64-bit libraries in $G/opt/lib and
> legacy 32-bit libraries in $G/opt/lib32 ?
Edit gcc/config/i386/t-linux64: you'll find the setting you need
to edit in MULTILIB_OSDIRNAMES.
Andrew.