784d3b4766
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/gcc#26a9740f02970892dd1cccc47c31f7027345a28f
29 lines
845 B
Plaintext
29 lines
845 B
Plaintext
srpm gcc
|
|
mcd $BUILDDIR/t-gcc
|
|
|
|
GCC_TCONFIGARGS="--prefix=/usr
|
|
--libdir=/usr/lib${SUFFIX}
|
|
--with-sysroot=/
|
|
--with-build-sysroot=$ROOTFS
|
|
--build=$BUILD
|
|
--host=$TARGET
|
|
--target=$TARGET
|
|
--disable-bootstrap
|
|
--enable-werror=no
|
|
--enable-cxx
|
|
${GCC_CONFIG_EXTRA}
|
|
--enable-languages=c,c++
|
|
--enable-threads=posix
|
|
--enable-linker-build-id
|
|
"
|
|
|
|
$SRC/gcc-*/configure $GCC_TCONFIGARGS
|
|
notparallel
|
|
make $J
|
|
make $J install DESTDIR=${ROOTFS}
|
|
test -e ${ROOTFS}/usr/bin/cc && rm ${ROOTFS}/usr/bin/cc
|
|
ln -s gcc ${ROOTFS}/usr/bin/cc
|
|
mkdir -p ${ROOTFS}/usr/share/gdb/auto-load/usr/lib${SUFFIX}
|
|
mv -f ${ROOTFS}/usr/lib${SUFFIX}/libstdc++*gdb.py* \
|
|
${ROOTFS}/usr/share/gdb/auto-load/usr/lib${SUFFIX}
|