Mercurial > hg > aboriginal
diff sources/sections/ccwrap.sh @ 1664:35b8949e9d9c
Very basic musl support. Still needs debugging and to be enabled per-target.
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 02 Jul 2014 20:05:36 -0500 |
parents | c5b158bdaa3f |
children | a87931846137 |
line wrap: on
line diff
--- a/sources/sections/ccwrap.sh Wed Jul 02 20:04:18 2014 -0500 +++ b/sources/sections/ccwrap.sh Wed Jul 02 20:05:36 2014 -0500 @@ -7,7 +7,9 @@ # Build wrapper binary +mkdir -p "$STAGE_DIR/bin" && "$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 +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