comparison simple-root-filesystem.sh @ 1198:78e786334c5b

Polish the strip logic a bit.
author Rob Landley <rob@landley.net>
date Sun, 08 Aug 2010 21:01:41 -0500
parents 80693b1a8038
children 99c49806ea6d
comparison
equal deleted inserted replaced
1197:8b1017be9de8 1198:78e786334c5b
81 mkdir -p "$STAGE_DIR/lib" || dienow 81 mkdir -p "$STAGE_DIR/lib" || dienow
82 (path_search \ 82 (path_search \
83 "$("$ARCH-cc" --print-search-dirs | sed -n 's/^libraries: =*//p')" \ 83 "$("$ARCH-cc" --print-search-dirs | sed -n 's/^libraries: =*//p')" \
84 "*.so*" 'cp -H "$DIR/$FILE" "$STAGE_DIR/lib/$FILE"' \ 84 "*.so*" 'cp -H "$DIR/$FILE" "$STAGE_DIR/lib/$FILE"' \
85 || dienow) | dotprogress 85 || dienow) | dotprogress
86
87 [ -z "$SKIP_STRIP" ] &&
88 "${ARCH}-strip" --strip-unneeded "$STAGE_DIR"/lib/*.so
86 fi 89 fi
87 90
88 # Clean up and package the result 91 # Clean up and package the result
89 92
90 if [ -z "$SKIP_STRIP" ] 93 [ -z "$SKIP_STRIP" ] &&
91 then 94 "${ARCH}-strip" "$STAGE_DIR"/{bin/*,sbin/*}
92 "${ARCH}-strip" "$STAGE_DIR"/{bin/*,sbin/*,libexec/gcc/*/*/*}
93 "${ARCH}-strip" --strip-unneeded "$STAGE_DIR"/lib/*.so
94 fi
95 95
96 create_stage_tarball 96 create_stage_tarball
97 97
98 # Color back to normal 98 # Color back to normal
99 echo -e "\e[0mBuild complete" 99 echo -e "\e[0mBuild complete"