#!/bin/bash set -o errexit # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list source ./cis-gcc-common # Configure options: # --enable-__cxa_atexit # This option allows use of __cxa_atexit, rather than atexit, to register # C++ destructors for local # statics and global objects and is essential for fully standards-compliant # handling of destructors. It also affects the C++ ABI and therefore results # in C++ shared libraries and C++ programs that are interoperable with other # Linux distributions. # --enable-c99 # Enable C99 support for C programs. # --enable-long-long # Enables long long support in the compiler. # --enable-threads=posix # This enables C++ exception handling for multi-threaded code. # --enable-languages=c,c++ # This option ensures that only the C and C++ compilers are built. cd ${LFS_TMP}/${1}-build AR=ar LDFLAGS="-Wl,-rpath,/cross-tools/lib" \ ../${1}/configure \ --prefix=/cross-tools \ --build=${CLFS_HOST} \ --host=${CLFS_HOST} \ --target=${CLFS_TARGET} \ --with-sysroot=${CLFS} \ --with-local-prefix=/tools \ --disable-nls \ --enable-shared \ --enable-languages=c,c++ \ --enable-__cxa_atexit \ --with-mpfr=/cross-tools \ --with-gmp=/cross-tools \ --enable-c99 \ --enable-long-long \ --enable-threads=posix \ ${TARGET_CONFIGURE_OPTS} ${HVMAKE} \ AS_FOR_TARGET="${CLFS_TARGET}-as" \ LD_FOR_TARGET="${CLFS_TARGET}-ld" ${HVMAKE} install exit $?