On Mon, Jun 03, 2013 at 11:11:10PM -0400, Mike Frysinger wrote:
> On Monday 03 June 2013 06:41:11 Thomas Petazzoni wrote:
> > On Fri, 31 May 2013 14:46:51 -0400, Mike Frysinger wrote:
> > > On Friday 31 May 2013 10:43:17 Jon Schneider wrote:
> > > > Thank you for making this work and please don't let anyone tell you to
> > > > start using GNU autoconf and friends. They're absolute crap for most
> > > > packages when cross building.
> > > 
> > > not to go way off topic for this list, but that's not really true. 
> > > autotools tends to work a lot more reliably than
> > > $random-build-system-of-the-day.  i spend more time fixing non-autotool
> > > packages to cross-compile properly than autotool ones.
> > 
> > Completely agree.
> > 
> > As far as cross-compilation is concerned, autotools-based or
> > CMake-based packages are *way* much easier to handle than any
> > hand-written build system.
> 
> i guess you haven't built any semi-complicated cmake-based packages :).  
> suggest *not* poking around /usr/share/cmake/Modules/ unless you want to cry 
> and die inside.
> -mike

CMake is just always hell. Part of that hell is compiling CMake
itself, which takes hours on some systems I've had to do it on.

Autotools-based can be good or bad for cross-compiling. The biggest
issue is that lots of people write broken tests that need to run test
programs to get the results they want. The worst offender is gnulib,
which has several such tests that are hard-coded to always-fail in the
cross-compiling test, thus causing unwanted wrapper/replacement code
to get pulled in and break functions that would otherwise work just
fine on the target system.

In concept, I think the Busybox "make menuconfig" style configuration
is probably the worst of all. It's hard to automate and requires a
learning curve for each program you want to build. The only reason it
"works well" for cross-compiling with Busybox is that cross-compiling
is a major usage case the maintainers care about. If you find a
non-embedded-oriented program using this build system, you'll probably
go through hell to get it to cross-compile right.

Rich
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to