Mercurial > hg > aboriginal
comparison 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 |
comparison
equal
deleted
inserted
replaced
1082:255488af0bbb | 1083:cb4dbdb7f2cd |
---|---|
42 # Put statically and dynamically linked hello world programs on there for | 42 # Put statically and dynamically linked hello world programs on there for |
43 # test purposes. | 43 # test purposes. |
44 | 44 |
45 "${ARCH}-cc" "${SOURCES}/toys/hello.c" -Os $CFLAGS -o "$STAGE_DIR/bin/hello-dynamic" || dienow | 45 "${ARCH}-cc" "${SOURCES}/toys/hello.c" -Os $CFLAGS -o "$STAGE_DIR/bin/hello-dynamic" || dienow |
46 | 46 |
47 if [ ! -z "$BUILD_STATIC" ] && [ "$BUILD_STATIC" != none ] | 47 if [ "$BUILD_STATIC" != none ] |
48 then | 48 then |
49 "${ARCH}-cc" "${SOURCES}/toys/hello.c" -Os $CFLAGS -static -o "$STAGE_DIR/bin/hello-static" || dienow | 49 "${ARCH}-cc" "${SOURCES}/toys/hello.c" -Os $CFLAGS -static -o "$STAGE_DIR/bin/hello-static" || dienow |
50 fi | 50 fi |
51 | 51 |
52 # Do we need shared libraries? | 52 # Do we need shared libraries? |
53 | 53 |
54 if [ ! -z "$BUILD_STATIC" ] && [ "$BUILD_STATIC" != none ] | 54 if [ "$BUILD_STATIC" != all ] |
55 then | 55 then |
56 echo Copying compiler libraries... | 56 echo Copying compiler libraries... |
57 mkdir -p "$STAGE_DIR/lib" || dienow | 57 mkdir -p "$STAGE_DIR/lib" || dienow |
58 (path_search \ | 58 (path_search \ |
59 "$("$ARCH-cc" --print-search-dirs | sed -n 's/^libraries: =*//p')" \ | 59 "$("$ARCH-cc" --print-search-dirs | sed -n 's/^libraries: =*//p')" \ |