/etc/dphys-swapfile
CONF_SWAPFILE=500
$ wget http://floppsie.comp.glam.ac.uk/download/c/gcc-4.7.3+gm2-cvs-latest.tar.gz $ bash my-rebuild-script
my-rebuild-script
#!/bin/bash export PATH=/usr/bin:$PATH echo path set to ${PATH} echo "press enter to continue if the path is correct" read ans LANGUAGES=c,c++,gm2 cd $HOME/GM2 GCC=4.7.3 rm -rf build-${GCC} mkdir build-${GCC} cd build-${GCC}
echo -n "checking for multiarch headers:" gcc -print-multiarch LIBRARY_PATH=/usr/lib/$(gcc -print-multiarch) CPATH=/usr/include/$(gcc -print-multiarch) export LIBRARY_PATH CPATH
CFLAGS="-g" CBOOTFLAGS="-g" \ --enable-languages=${LANGUAGES} \ --libexecdir=$HOME/opt/lib --enable-shared \ --enable-threads=posix --enable-__cxa_atexit \ --enable-clocale=gnu \ --disable-multilib --disable-bootstrap \ --enable-checking=all --enable-libgm2 \ --with-bugurl=mailto://yourname@your.org \ --enable-shared --enable-linker-build-id --with-system-zlib \ --without-included-gettext --enable-threads=posix \ --enable-nls --with-sysroot=/ --enable-clocale=gnu \ --enable-libstdcxx-debug --enable-libstdcxx-time=yes \ --enable-gnu-unique-object --enable-plugin \ --enable-objc-gc --disable-sjlj-exceptions \ --with-arch=armv6 --with-fpu=vfp --with-float=hard \ --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf \ --target=arm-linux-gnueabihf time ( ( make "SHELL=/bin/bash" && cd gcc && make check-gm2 ) \ >& build-log ) < /dev/null & sleep 5 tail -f build-log
This document was produced using groff-1.22.