Mercurial > hg > aboriginal
comparison simple-root-filesystem.sh @ 1232:e93f17722cdf
When BUILD_STATIC=all that inclues oneit.
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 01 Sep 2010 00:58:00 -0500 |
parents | 313c702a0984 |
children | 0666458bca16 |
comparison
equal
deleted
inserted
replaced
1231:0a1a177d0e28 | 1232:e93f17722cdf |
---|---|
60 cp "$WORK"/config-busybox "$STAGE_DIR"/src || dienow | 60 cp "$WORK"/config-busybox "$STAGE_DIR"/src || dienow |
61 | 61 |
62 # Build the world's simplest init program: spawns one task with a controlling | 62 # Build the world's simplest init program: spawns one task with a controlling |
63 # TTY, waits (reaping zombies) until it exits, then shuts down the system. | 63 # TTY, waits (reaping zombies) until it exits, then shuts down the system. |
64 | 64 |
65 ${ARCH}-cc "$SOURCES/toys/oneit.c" -Os $CFLAGS -o "$STAGE_DIR/sbin/oneit" || | 65 TEMP= |
66 dienow | 66 [ "$BUILD_STATIC" == all ] && TEMP=--static |
67 ${ARCH}-cc "$SOURCES/toys/oneit.c" -Os $CFLAGS $TEMP \ | |
68 -o "$STAGE_DIR/sbin/oneit" || dienow | |
67 | 69 |
68 # Put statically and dynamically linked hello world programs on there for | 70 # Put statically and dynamically linked hello world programs on there for |
69 # test purposes. | 71 # test purposes. |
70 | 72 |
71 "${ARCH}-cc" "${SOURCES}/toys/hello.c" -Os $CFLAGS -o "$STAGE_DIR/bin/hello-dynamic" || dienow | 73 "${ARCH}-cc" "${SOURCES}/toys/hello.c" -Os $CFLAGS -o "$STAGE_DIR/bin/hello-dynamic" || dienow |