Bug 1315 - Allow use of older external toolchains without sysroot support
Summary: Allow use of older external toolchains without sysroot support
Status: RESOLVED WONTFIX
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2010.02
Hardware: PC Linux
: P5 enhancement
Target Milestone: 2010.05
Assignee: Thomas Petazzoni
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-16 00:36 UTC by Chris Seawood
Modified: 2012-07-20 08:22 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
v1.0 (9.70 KB, patch)
2010-03-16 04:39 UTC, Chris Seawood
Details

Note You need to log in before you can comment on or make changes to this bug.
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.