This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
forwarding to the crossgcc list... perhaps somebody there can comment.
On 8/23/07, Douglas Jerome <douglas@backstep.org> wrote:
> I am building binutils-2.17 for a cross tool chain.
>
> ../binutils-2.17/configure \
> --prefix=${XTOOL_DIR}/host \
> --host=i686-pc-linux-gnu \
> --target=i486-generic-linux-gnu \
> --disable-multilib \
> --with-sysroot=${XTOOL_DIR}/target || exit 1
>
> The idea is to separate host cross tools from target cross libs:
> ${XTOOL_DIR}/host ..... for things like i486-generic-linux-gnu-ld
> ${XTOOL_DIR}/target ... for later things like target libstdc++.so
>
> ${XTOOL_DIR}/target is the root of the target file system image.
>
> In ${XTOOL_DIR}/host/i486-generic-linux-gnu/lib/ldscripts/ the
> files
> elf_i386.x
> elf_i386.xbn
> elf_i386.xc
> elf_i386.xd
> elf_i386.xdc
> elf_i386.xdw
> elf_i386.xn
> elf_i386.xs
> elf_i386.xsc
> elf_i386.xsw
> elf_i386.xw
> all have SEARCH_DIR("=/usr/local/lib"); SEARCH_DIR("=/lib");
> SEARCH_DIR("=/usr/lib") and I don't like this; it seems wrong.
>
> When I configure binutils with
> --with-build-sysroot=${XTOOL_DIR}/target
> the elf_i386.* files above all have *host* paths [from --prefix?] as
> SEARCH_DIR("${XTOOL_DIR}/host/i486-generic-linux-gnu/lib")
> but I expected *target* paths as
> SEARCH_DIR("${XTOOL_DIR}/target/i486-generic-linux-gnu/lib")
>
> What is the correct way to specify sysroot on the configure command?
> --with-build-sysroot=${XTOOL_DIR}/target
> --with-sysroot=${XTOOL_DIR}/target
> --enable-sysroot=${XTOOL_DIR}/target
>
> And, what does sysroot do?
> Affect the elf_i386.* files?
> Affect the binary host cross-tools like i486-generic-linux-gnu-ld?
> Or, just affect only the compilation of the host cross-tools like
> i486-generic-linux-gnu-ld? (I think not this.)
>
> Ahhh.......!
>
--
Wine for Windows ISVs: http://kegel.com/wine/isv
--
For unsubscribe information see http://sourceware.org/lists.html#faq
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |