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@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. _______________________________________________ eldk mailing list [email protected] http://lists.denx.de/mailman/listinfo/eldk
