Mercurial > hg > aboriginal
diff host-tools.sh @ 1024:0fd90ff771dc
Build zlib for squashfs, so we don't depend on the host having it.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 01 Apr 2010 02:39:54 -0500 |
parents | b9319aa31df8 |
children | 77024e0f4ccb |
line wrap: on
line diff
--- a/host-tools.sh Mon Mar 29 19:02:55 2010 -0500 +++ b/host-tools.sh Thu Apr 01 02:39:54 2010 -0500 @@ -165,10 +165,18 @@ if [ ! -f "${STAGE_DIR}"/mksquashfs ] && ([ -z "$SYSIMAGE_TYPE" ] || [ "$SYSIMAGE_TYPE" == squashfs ]) then + setupfor zlib && + ./configure && + make -j $CPUS && + mv z*.h libz.a .. + + cleanup + setupfor squashfs && cd squashfs-tools && - make -j $CPUS && - cp mksquashfs unsquashfs "${STAGE_DIR}" + CC="$CC -I ../.. -L ../.." make -j $CPUS && + cp mksquashfs unsquashfs "${STAGE_DIR}" && + rm ../../{z*.h,libz.a} cleanup fi