[Buildroot] Standalone toolchain

Hinko Kocevar hinko.kocevar at cetrtapot.si
Mon Sep 29 10:57:01 UTC 2008

Hinko Kocevar wrote:
> It can be seen that --sysroot argument is not applied to the linker command - it is using default sysroot (used when creating toolchain) '/work/buildroot/build_cris/staging_dir' instead of '/work/git/sdk.git/toolchain' I'm trying to set.
> LD should indeed accept the argument (from the help):
> hinkok at alala /work/git/sdk.git $ /work/git/sdk.git/toolchain/usr/bin/../lib/gcc/cris-linux-uclibc/4.3.1/../../../../cris-linux-uclibc/bin/ld --help|grep sysroot
>   --sysroot=<DIRECTORY>       Override the default sysroot location

These options seem to work:
CFLAGS += --sysroot=$(TOOLCHAIN)
LDFLAGS += --sysroot=$(TOOLCHAIN) -Wl,--sysroot,$(TOOLCHAIN)

Best regards,

ČETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: hinko.kocevar at cetrtapot.si
Http: www.cetrtapot.si

More information about the buildroot mailing list