Mercurial > hg > aboriginal
view sources/sections/ccwrap.sh @ 1522:95a720e694a6
Switch x86_64 from nptl back to pthreads. This isn't the correct fix but uClibc apparently never tested nptl on x86-64, and one of the assembly files doesn't support PIC.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 10 May 2012 22:03:22 -0500 |
parents | c5b158bdaa3f |
children | 35b8949e9d9c |
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" # Build wrapper binary "$TEMP" "$SOURCES/toys/ccwrap.c" -Os $CFLAGS \ -o "$STAGE_DIR/bin/${TOOLCHAIN_PREFIX}cc" $STATIC_FLAGS && echo -e '#!/bin/bash\n\ncc -E "$@"' > "$STAGE_DIR/bin/cpp" && chmod +x "$STAGE_DIR/bin/cpp" || dienow