busybox: make sure architecture flags are used at link time
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 17 Dec 2009 19:57:13 +0000 (20:57 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 17 Apr 2010 00:10:58 +0000 (02:10 +0200)
commit55098e50488eeb163af8f63445bd3e7c52850410
tree7313f3919042c0a8b79f6a0fd11e4142ce7f6a43
parent05c75314c9f8f06522d520d2ea9e6d84d3db3668
busybox: make sure architecture flags are used at link time

When compiling Busybox, according to readelf -A, all object files were
properly compiled according to the select architecture (-march=armv4t
for example), but the final busybox binary could be of a different
architecture (ARMv5t even if ARMv4t was selected).

This patch changes the way we configure/compile Busybox so that our
CFLAGS aren't anymore passed through the make EXTRA_CFLAGS variable,
but through the .config CONFIG_EXTRA_CFLAGS variable. Unfortunately,
those variables don't have exactly the same semantic for the Busybox
build system.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/busybox/busybox-1.13.x.config
package/busybox/busybox.mk