Mercurial > hg > aboriginal
comparison root-filesystem.sh @ 794:81cf7ae7afce
Teach make, bash, and distcc to honor BUILD_STATIC=1.
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 05 Aug 2009 04:23:51 -0500 |
parents | db06a8c1bfed |
children | d6bf46d17ac5 |
comparison
equal
deleted
inserted
replaced
793:7b2d882eba4a | 794:81cf7ae7afce |
---|---|
272 cleanup busybox | 272 cleanup busybox |
273 | 273 |
274 # Build and install make | 274 # Build and install make |
275 | 275 |
276 setupfor make | 276 setupfor make |
277 CC="${ARCH}-cc" ./configure --prefix="$ROOT_TOPDIR" --build="${CROSS_HOST}" \ | 277 LDFLAGS="$STATIC_FLAGS $LDFLAGS" CC="${ARCH}-cc" ./configure \ |
278 --host="${CROSS_TARGET}" && | 278 --prefix="$ROOT_TOPDIR" --build="${CROSS_HOST}" --host="${CROSS_TARGET}" && |
279 make -j $CPUS && | 279 make -j $CPUS && |
280 make -j $CPUS install && | 280 make -j $CPUS install && |
281 cd .. | 281 cd .. |
282 | 282 |
283 cleanup make | 283 cleanup make |
292 ac_cv_func_setvbuf_reversed=no | 292 ac_cv_func_setvbuf_reversed=no |
293 bash_cv_sys_named_pipes=yes | 293 bash_cv_sys_named_pipes=yes |
294 bash_cv_have_mbstate_t=yes | 294 bash_cv_have_mbstate_t=yes |
295 bash_cv_getenv_redef=no | 295 bash_cv_getenv_redef=no |
296 EOF | 296 EOF |
297 CC="${ARCH}-cc" RANLIB="${ARCH}-ranlib" ./configure --prefix="$ROOT_TOPDIR" \ | 297 LDFLAGS="$STATIC_FLAGS $LDFLAGS" CC="${ARCH}-cc" RANLIB="${ARCH}-ranlib" \ |
298 ./configure --prefix="$ROOT_TOPDIR" \ | |
298 --build="${CROSS_HOST}" --host="${CROSS_TARGET}" --cache-file=config.cache \ | 299 --build="${CROSS_HOST}" --host="${CROSS_TARGET}" --cache-file=config.cache \ |
299 --without-bash-malloc --disable-readline && | 300 --without-bash-malloc --disable-readline && |
300 # note: doesn't work with -j | 301 # note: doesn't work with -j |
301 make && | 302 make && |
302 make install && | 303 make install && |
305 cd .. | 306 cd .. |
306 | 307 |
307 cleanup bash | 308 cleanup bash |
308 | 309 |
309 setupfor distcc | 310 setupfor distcc |
310 CC="${ARCH}-cc" ./configure --host="${CROSS_TARGET}" --prefix="$ROOT_TOPDIR" \ | 311 LDFLAGS="$STATIC_FLAGS $LDFLAGS" CC="${ARCH}-cc" ./configure \ |
312 --host="${CROSS_TARGET}" --prefix="$ROOT_TOPDIR" \ | |
311 --with-included-popt --disable-Werror && | 313 --with-included-popt --disable-Werror && |
312 make -j $CPUS && | 314 make -j $CPUS && |
313 make -j $CPUS install && | 315 make -j $CPUS install && |
314 mkdir -p "$ROOT_TOPDIR/distcc" || dienow | 316 mkdir -p "$ROOT_TOPDIR/distcc" || dienow |
315 | 317 |