On Nov 29, 2013, at 11:06 AM, Baho Utot wrote:
> Is it possible to build LFS-7.4 on x86_64 without the /lib64 symlink?
>
> I have tried to do so but libstd++ in the chapter 5 tool chain dies.
>
> I would like to build for x86_64 and have the same filesystem layout
> that i686 has ie without the lib64 directories
Don't use --disable-multilib and remove the lib64 link, lib and lib64
will be automatically created.
The linker will search in the default paths:
for x86_64-unknown-linux-gnu:
SEARCH_DIR("/usr/x86_64-unknown-linux-gnu/lib64"); SEARCH_DIR("/usr/
local/lib64"); SEARCH_DIR("/lib64"); SEARCH_DIR("/usr/lib64");
SEARCH_DIR("/usr/x86_64-unknown-linux-gnu/lib"); SEARCH_DIR("/usr/
local/lib"); SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib");
SEARCH_DIR("/usr/x86_64-unknown-linux-gnu/libx32"); SEARCH_DIR("/usr/
local/libx32"); SEARCH_DIR("/libx32"); SEARCH_DIR("/usr/libx32");
SEARCH_DIR("/usr/x86_64-unknown-linux-gnu/lib"); SEARCH_DIR("/usr/
local/lib"); SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib");
for i386-unknown-linux-gnu (or i486 or i586 or i686):
SEARCH_DIR("/usr/i386-unknown-linux-gnu/lib"); SEARCH_DIR("/usr/local/
lib"); SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib");
SEARCH_DIR("/usr/x86_64-unknown-linux-gnu/lib"); SEARCH_DIR("/usr/
local/lib"); SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib");
Since the compiler will default to 64bit with -m64, it'll build 64bit
binaries. Some packages default with libdir to /lib or /usr/lib. Those
you'll need to set --libdir or with glibc set slibdir in configparams.
If you want a pure64 bit system with only lib, you need to disable
multilib, adjust the gcc specs to search only in /lib and /usr/lib
and /usr/local/lib or any other lib rather than lib64 for x86_64
targets. You can also set the default search path for binutils so it
only searches in /lib:/usr/lib:/usr/local/lib rather than x32, too.
You will need to read and experiment quite a bit to do this on your own.
SIncerely,
WIlliam Harrington
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page