# HG changeset patch # User Rob Landley # Date 1283320680 18000 # Node ID e93f17722cdfb9a1592e4474df0d5f4e372ba85b # Parent 0a1a177d0e2813fbd1e6e4abdcecc8b4e8c90b67 When BUILD_STATIC=all that inclues oneit. diff -r 0a1a177d0e28 -r e93f17722cdf simple-root-filesystem.sh --- a/simple-root-filesystem.sh Tue Aug 31 18:25:34 2010 -0500 +++ b/simple-root-filesystem.sh Wed Sep 01 00:58:00 2010 -0500 @@ -62,8 +62,10 @@ # Build the world's simplest init program: spawns one task with a controlling # TTY, waits (reaping zombies) until it exits, then shuts down the system. -${ARCH}-cc "$SOURCES/toys/oneit.c" -Os $CFLAGS -o "$STAGE_DIR/sbin/oneit" || - dienow +TEMP= +[ "$BUILD_STATIC" == all ] && TEMP=--static +${ARCH}-cc "$SOURCES/toys/oneit.c" -Os $CFLAGS $TEMP \ + -o "$STAGE_DIR/sbin/oneit" || dienow # Put statically and dynamically linked hello world programs on there for # test purposes.