|
Jaromir Capik |
1a6fe02 |
srpm gcc
|
|
Jaromir Capik |
274d618 |
mcd $BUILDDIR/gcc-libgcc
|
|
Jaromir Capik |
274d618 |
|
|
Jaromir Capik |
274d618 |
# These are for gcc cross-tools (politics sometime result in slightly
|
|
Jaromir Capik |
274d618 |
# different arch names)
|
|
Jaromir Capik |
274d618 |
GCC_CONFIGARGS="--prefix=$PREFIX
|
|
Jaromir Capik |
274d618 |
--libdir=$PREFIX/lib${SUFFIX}
|
|
Jaromir Capik |
274d618 |
--target=$TARGET
|
|
Jaromir Capik |
274d618 |
${GCC_CONFIG_EXTRA}
|
|
Jaromir Capik |
274d618 |
--enable-languages=c,c++
|
|
Jaromir Capik |
274d618 |
--with-sysroot=$ROOTFS
|
|
Jaromir Capik |
274d618 |
--with-build-sysroot=$ROOTFS
|
|
Jaromir Capik |
274d618 |
--cache-file=config.cache
|
|
Jaromir Capik |
274d618 |
--disable-bootstrap
|
|
Jaromir Capik |
274d618 |
--enable-threads=posix
|
|
Jaromir Capik |
274d618 |
--enable-64-bit-bfd
|
|
Jaromir Capik |
274d618 |
--disable-lto
|
|
Jaromir Capik |
274d618 |
$WITHPPL
|
|
Jaromir Capik |
274d618 |
"
|
|
Jaromir Capik |
1a6fe02 |
|
|
Jaromir Capik |
1a6fe02 |
# prefill gcc cache
|
|
Jaromir Capik |
1a6fe02 |
echo 'lt_cv_shlibpath_overrides_runpath=no' > config.cache
|
|
Jaromir Capik |
1a6fe02 |
echo 'gcc_cv_libc_provides_ssp=yes' >> config.cache
|
|
Jaromir Capik |
1a6fe02 |
|
|
Jaromir Capik |
274d618 |
if [ ! "$BUILDER_ARCH" = "$TARGET_ARCH" ]; then
|
|
Jaromir Capik |
274d618 |
WITH_HEADERS="--with-headers=$ROOTFS/usr/include"
|
|
Jaromir Capik |
274d618 |
fi
|
|
Jaromir Capik |
274d618 |
|
|
Jaromir Capik |
274d618 |
$SRC/gcc-*/configure $GCC_CONFIGARGS $WITH_HEADERS
|
|
Jaromir Capik |
1a6fe02 |
notparallel
|
|
Jaromir Capik |
1a6fe02 |
# Pass gcc_cv_libc_provides_ssp down, because the config.cache
|
|
Jaromir Capik |
1a6fe02 |
# version is not passed down to the gcc subdir.
|
|
Jaromir Capik |
1a6fe02 |
make $J all-target-libgcc all-target-libssp gcc_cv_libc_provides_ssp=yes
|
|
Jaromir Capik |
1a6fe02 |
make $J install-target-libgcc install-target-libssp gcc_cv_libc_provides_ssp=yes
|