Mercurial > hg > aboriginal
diff root-filesystem.sh @ 1083:cb4dbdb7f2cd
Make BUILD_STATIC take comma separated list of packages, or "all" or "none". Default behavior should remain the same.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 16 May 2010 02:26:03 -0500 |
parents | abc8ddd4d9f0 |
children | a0bc889b4269 |
line wrap: on
line diff
--- a/root-filesystem.sh Sat May 15 12:41:14 2010 -0500 +++ b/root-filesystem.sh Sun May 16 02:26:03 2010 -0500 @@ -44,14 +44,14 @@ "${ARCH}-cc" "${SOURCES}/toys/hello.c" -Os $CFLAGS -o "$STAGE_DIR/bin/hello-dynamic" || dienow -if [ ! -z "$BUILD_STATIC" ] && [ "$BUILD_STATIC" != none ] +if [ "$BUILD_STATIC" != none ] then "${ARCH}-cc" "${SOURCES}/toys/hello.c" -Os $CFLAGS -static -o "$STAGE_DIR/bin/hello-static" || dienow fi # Do we need shared libraries? -if [ ! -z "$BUILD_STATIC" ] && [ "$BUILD_STATIC" != none ] +if [ "$BUILD_STATIC" != all ] then echo Copying compiler libraries... mkdir -p "$STAGE_DIR/lib" || dienow