Bug 1315

Summary: Allow use of older external toolchains without sysroot support
Product: buildroot Reporter: Chris Seawood <cls>
Component: OtherAssignee: Thomas Petazzoni <thomas.petazzoni>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: buildroot
Priority: P5    
Version: 2010.02   
Target Milestone: 2010.05   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: v1.0

Description Chris Seawood 2010-03-16 00:36:30 UTC
I'm using buildroot to create packages that are binary compatible with the default rootfs provides in my Patriot Corza NAS.  As such, I'm unable to upgrade to a newer toolchain that supports --sysroot.

The attached patch updates package/Makefile.in, ext-tool.mk and various package .mks to allow buildroot to be built with an external toolchain that does not use --sysroot (gcc-3.4.6, in my case).  The use of --sysroot is now controlled by the BR2_TOOLCHAIN_EXTERNAL_SYSROOT option.  

Most of the other changes just involve passing TARGET_CONFIGURE_ENV to the configure or make calls for each package.

There's also a change to override the broken getline detection in sed when using an external glibc toolchain.
Comment 1 Chris Seawood 2010-03-16 04:39:44 UTC
Created attachment 1291 [details]
v1.0
Comment 2 Thomas Petazzoni 2010-03-16 07:42:50 UTC
Thanks for this patch.

In the past, we tried to handle toolchains not supporting --sysroot, but that proved to be very difficult with packages such as the Gtk stack or Qt. See for example the thread at http://lists.busybox.net/pipermail/buildroot/2008-November/023870.html or http://lists.busybox.net/pipermail/buildroot/2008-December/024147.html.

Does your patch works when compiling Qt, for example ?
Comment 3 Chris Seawood 2010-03-16 18:05:26 UTC
I have not systematically tested every package in the tree.  I only tested the ones needed for the Corza packages.  However, I just tried Qt and it built fine.
Comment 4 Thomas Petazzoni 2010-07-23 07:06:16 UTC
This is more an enhancement request than a real bug.
Comment 5 Thomas Petazzoni 2012-07-20 08:22:54 UTC
Two years later, sysroot capable toolchains are much more common, and we definitely don't want to add the complexity to add non-sysrooted toolchains into Buildroot.