Discussion:
lib and lib64 on x86_64 arch, how to change?
Leonid Petrov
2008-12-29 21:34:17 UTC
Permalink
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 ?

Leonid Petrov
Andrew Haley
2008-12-30 10:00:53 UTC
Permalink
Post by Leonid Petrov
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++
$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.

Loading...