Ashwani Bhat wrote:
I need to build gcc-v4.1.1 on Linux x86_64 which must
have support for 32 bit libraries and 64 bit libraries as well. I can do
it in two separate builds, but how can I achieve this in one build with
only 32bit libraries getting built under "lib" directory and only 64bit
libraries getting built here under "lib64" directory of the
installation. Can someone please help me ?
This is the default action if your $host/$target is 'x86_64-linux-gnu'
or something! If it is 'i686-linux-gnu' or something, only the 32-bit
libs will be produced, no 64-bit ones... But with something like the
'sparc-solaris2.8' target (telling it being a 32-bit target), both the
32-bit and 64-bit libraries will be produced. So there are problems
if running a 32-bit Linux on a 64-bit x86_64 machine and wanting to
produce both 32-bit (the default) and 64-bit stuff with the produced
GCC...
So you shouldn't have any problems with your goal. The default 64-
bit libraries will be produced and installed into the '*lib64' and the
optional 32-bit libraries into the '*lib'!
-----Original Message-----
I have build gcc-v4.1.1 on Linux AMD x86_64. Under "lib" directory, I
see many 32 bit libraries getting built. I was wondering if I can
avoid ending up building 32 bit libraries. I want only 64 bit
libraries under "lib" directory.
This earlier "goal" (64-bit libraries in '*lib'), then was for the non-
standard "Ubuntu" scheme where the default 64-bit libraries are
in '*lib' and the 32-bit libraries are in '*lib32'.... Building a GCC
for Ubuntu's Linux/x86_64 so requires fixes to the GCC defaults!