Mercurial > hg > aboriginal
view sources/sections/ccwrap.sh @ 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 | c11a357ea92d |
children | 117f1c93212a |
line wrap: on
line source
# build and install gcc wrapper # Which compiler do we build the wrapper with, and should it be static? [ "$BUILD_STATIC" == none ] && STATIC_FLAGS= || STATIC_FLAGS=--static [ -z "$HOST_ARCH" ] && TEMP="$CC" || TEMP="${HOST_ARCH}-cc" LIBC_TYPE=musl [ ! -z "$UCLIBC_CONFIG" ] && [ -z "$MUSL" ] && LIBC_TYPE=uClibc # Build wrapper binary mkdir -p "$STAGE_DIR/bin" && "$TEMP" "$SOURCES/toys/ccwrap.c" -Os $CFLAGS \ -o "$STAGE_DIR/bin/${TOOLCHAIN_PREFIX}cc" $STATIC_FLAGS \ -DDYNAMIC_LINKER=\"/lib/ld-${LIBC_TYPE}.so.0\" && echo -e "#!/bin/bash\n\n${TOOLCHAIN_PREFIX}cc -E "'"$@"' \ > "$STAGE_DIR/bin/${TOOLCHAIN_PREFIX}cpp" && chmod +x "$STAGE_DIR/bin/${TOOLCHAIN_PREFIX}cpp" || dienow