[Clfs-support] your gcc patch

Koornstra, Reinoud koornstra at hp.com
Thu May 8 11:46:04 PDT 2014


So this patch is to make sure gcc is looking in /tools when booted and not in /lib while you're using gcc on the system?
Thanks,

Reinoud.

-----Original Message-----
From: William Harrington [mailto:kb0iic at berzerkula.org] 
Sent: Thursday, May 08, 2014 4:44 AM
To: Koornstra, Reinoud
Cc: clfs-support
Subject: Re: your gcc patch


On May 7, 2014, at 3:34 PM, Koornstra, Reinoud wrote:

> Hi William,
>
> I looked in the patch you wrote for gcc in gcc/config/aarch64/ 
> aarch64-linux.h for example
>
> #define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux-aarch64.so.1"
>
> You added /tools in front of /lib
> Does this only work, because you did:
>
> ln -sv ${CLFS}/tools /
>
> if you didn't make this link you'd have to change this with:
>
> #define GLIBC_DYNAMIC_LINKER "/mnt/clfs/tools/lib/ld-linux- 
> aarch64.so.1"
>
> Correct?
> Thanks,
>
> Reinoud.
>

It needs to be that way because the sysroot is at ${CLFS}/tools, but the interpreter is to be at /tools/lib{32,64} respectively for multilib and mips

Without /tools in the gcc specs, he host would be used, we don' want that.
When a person uses the boot method or chroot method, the toolchain needs to be using /tools (which is /mnt/clfs/tools when not chrooted or booted into the temp system).

Sincerely,

William Harrington



More information about the Clfs-support mailing list