2015-06-16 11:21:33 +00:00
|
|
|
srpm gcc
|
|
|
|
mcd $BUILDDIR/gcc
|
|
|
|
|
2015-06-24 11:15:28 +00:00
|
|
|
# These are for gcc cross-tools (politics sometime result in slightly
|
|
|
|
# different arch names)
|
|
|
|
GCC_CONFIGARGS="--prefix=$PREFIX
|
|
|
|
--libdir=$PREFIX/lib${SUFFIX}
|
|
|
|
--target=$TARGET
|
|
|
|
${GCC_CONFIG_EXTRA}
|
|
|
|
--enable-languages=c,c++
|
|
|
|
--with-sysroot=$ROOTFS
|
|
|
|
--with-build-sysroot=$ROOTFS
|
|
|
|
--cache-file=config.cache
|
|
|
|
--disable-bootstrap
|
|
|
|
--enable-threads=posix
|
|
|
|
--enable-64-bit-bfd
|
|
|
|
--disable-lto
|
|
|
|
$WITHPPL
|
|
|
|
"
|
|
|
|
|
2015-06-16 11:21:33 +00:00
|
|
|
# prefill gcc cache
|
|
|
|
echo 'lt_cv_shlibpath_overrides_runpath=no' > config.cache
|
|
|
|
echo 'gcc_cv_libc_provides_ssp=yes' >> config.cache
|
|
|
|
|
2015-06-24 11:15:28 +00:00
|
|
|
if [ ! "$BUILDER_ARCH" = "$TARGET_ARCH" ]; then
|
|
|
|
WITH_HEADERS="--with-headers=$ROOTFS/usr/include"
|
|
|
|
fi
|
|
|
|
|
|
|
|
$SRC/gcc-*/configure $GCC_CONFIGARGS $WITH_HEADERS
|
2015-06-16 11:21:33 +00:00
|
|
|
notparallel
|
|
|
|
make $J
|
|
|
|
make $J install
|
|
|
|
mcd $ROOTFS/lib${SUFFIX}/gcc
|
|
|
|
rsync -av $PREFIX/lib${SUFFIX}/gcc/ $ROOTFS/lib${SUFFIX}/gcc/
|
|
|
|
rsync -av $PREFIX/$TARGET/lib/ $ROOTFS/lib${SUFFIX}/
|