view sources/sections/toybox.build @ 1682:64316ca2bc9b

Remove redundant list assignment in ccwrap that screws up ordering and puts the -L entries in the wrong order.
author Rob Landley <rob@landley.net>
date Fri, 05 Sep 2014 23:54:01 -0500
parents 59c1495d5b5e
children cb28b1d437b2
line wrap: on
line source

# Build toybox statically by default, but don't statically link against
# glibc (during host-tools.sh build) because glibc is buggy and can't combine
# --static with --gc-sections. See http://blah for details

# Build toybox

for i in defconfig toybox \
  $( [ -z "$BUSYBOX" ] && echo install$([ -z "$ARCH" ] && echo _flat) )
do
  PREFIX="$STAGE_DIR" CFLAGS="$CFLAGS $STATIC_FLAGS" CC= STRIP= \
    CROSS_COMPILE=${ARCH:+${ARCH}-} make -j $CPUS $VERBOSITY $i || dienow
done
cp .config "$WORK"/config-toybox || dienow

# We always need at least oneit

if [ ! -z "$BUSYBOX" ]
then
  ln -sf {$ARCH:+/usr/bin/}toybox "$STAGE_DIR/${ARCH:+sbin/}oneit" || dienow
fi

if [ ! -z "$SKIP_STRIP" ]
then
  cp toybox_unstripped "$INSTDIR/toybox" || dienow
fi