[ELDK] Get big fat busybox when taking eldk 5.0-beta

Gao Ya'nan abutter.gao at gmail.com
Sun May 1 07:25:15 CEST 2011


First, set environment variables:

export PATH=/opt/eldk-5.0/powerpc/sysroots/i686-pokysdk-linux/usr/bin/powerpc-linux:$PATH
export ARCH=powerpc
export CROSS_COMPILE=powerpc-linux-

compile busbox, And then I got a 1.5MB big fat dynamic-linking binary.

I compared the compiling process with ELDK-42, and found "-Os" options
was missing in Makefile.flags adding "-Os" flags

cc-option = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc
/dev/null > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)

Then I tried in commandline and google "--enable-target-optspace".

[xxx at S2 powerpc]$ powerpc-linux-gcc -Os -S -o /dev/null -xc /dev/null
cc1: error: Do not use -Os option if --enable-target-optspace is not set.

I think --enable-target-optspace is missing when building the
crosstool. Is there anyone who meet and solve this problem?

Thanks.


More information about the eldk mailing list