view sources/sections/busybox.build @ 979:88b354c0eee1

Tweak mercurial repo entry and add link to current snapshot.
author Rob Landley <rob@landley.net>
date Tue, 16 Feb 2010 06:57:14 -0600
parents fc134a13357e
children e021bba5e22e
line wrap: on
line source

# Build busybox statically by default, but don't statically link against
# glibc because glibc is buggy and can't combine --static with --gc-sections.

# Build busybox

make allyesconfig KCONFIG_ALLCONFIG="${SOURCES}/trimconfig-busybox" &&
cp .config "$WORK"/config-busybox &&
LDFLAGS="$LDFLAGS $STATIC_DEFAULT_FLAGS" make -j $CPUS $VERBOSITY $DO_CROSS &&
make busybox.links &&
cp busybox${SKIP_STRIP:+_unstripped} "${STAGE_DIR}/busybox" || dienow

for i in $(sed 's@.*/@@' busybox.links)
do
  [ ! -f "${STAGE_DIR}/$i" ] &&
    (ln -sf busybox "${STAGE_DIR}/$i" || dienow)
done