From: Lionel Landwerlin Date: Wed, 01 Jul 2009 01:54:33 +0200 Subject: [Buildroot] External toolchain improvements In-Reply-To: References: Message-ID: <1246406073.21132.13.camel@coalu.atr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi Thomas, I'm interested by your patches, I'm using a STLinux external toolchain (Linux for SH4 SetTop Boxes). The problem is that copying only libraries is not enough to build even a simple program like this one : int main (void) { return 0; } With my current toolchain, I also need : * crt1.o crti.o crtn.o * All headers from the libc & linux After that, I also have problems with packages using pkg-config. Pkg-config returns paths relatives to the build directory ( -L/usr/lib for example). Gcc tries to link with host libraries... We probably need a double --sysroot parameter to look first where the toolchain is installed and then in the given sysroot path. Regards, -- Lionel Landwerlin