comparison sources/sections/ccwrap.sh @ 1774:117f1c93212a draft

Teach sh2eb toolchain to produce flat binaries unless -melf argument supplied.
author Rob Landley <rob@landley.net>
date Thu, 25 Jun 2015 02:43:17 -0500
parents c11a357ea92d
children 398efd71a43e
comparison
equal deleted inserted replaced
1773:eca87f8f58fb 1774:117f1c93212a
10 # Build wrapper binary 10 # Build wrapper binary
11 11
12 mkdir -p "$STAGE_DIR/bin" && 12 mkdir -p "$STAGE_DIR/bin" &&
13 "$TEMP" "$SOURCES/toys/ccwrap.c" -Os $CFLAGS \ 13 "$TEMP" "$SOURCES/toys/ccwrap.c" -Os $CFLAGS \
14 -o "$STAGE_DIR/bin/${TOOLCHAIN_PREFIX}cc" $STATIC_FLAGS \ 14 -o "$STAGE_DIR/bin/${TOOLCHAIN_PREFIX}cc" $STATIC_FLAGS \
15 -DDYNAMIC_LINKER=\"/lib/ld-${LIBC_TYPE}.so.0\" && 15 -DDYNAMIC_LINKER=\"/lib/ld-${LIBC_TYPE}.so.0\" ${ELF2FLT:+-DELF2FLT} &&
16 echo -e "#!/bin/bash\n\n${TOOLCHAIN_PREFIX}cc -E "'"$@"' \ 16 echo -e "#!/bin/bash\n\n${TOOLCHAIN_PREFIX}cc -E "'"$@"' \
17 > "$STAGE_DIR/bin/${TOOLCHAIN_PREFIX}cpp" && 17 > "$STAGE_DIR/bin/${TOOLCHAIN_PREFIX}cpp" &&
18 chmod +x "$STAGE_DIR/bin/${TOOLCHAIN_PREFIX}cpp" || dienow 18 chmod +x "$STAGE_DIR/bin/${TOOLCHAIN_PREFIX}cpp" || dienow