public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gcc] rhel-f41-base: Adding STAGE1 bootstrap recipes
@ 2026-06-29 12:26 Jaromir Capik
0 siblings, 0 replies; only message in thread
From: Jaromir Capik @ 2026-06-29 12:26 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/gcc
Branch : rhel-f41-base
Commit : 1a6fe020a91c5d169e931318f3586b4dbffcd836
Author : Jaromir Capik <jcapik@redhat.com>
Date : 2015-06-16T13:21:33+02:00
Stats : +69/-0 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/gcc/c/1a6fe020a91c5d169e931318f3586b4dbffcd836?branch=rhel-f41-base
Log:
Adding STAGE1 bootstrap recipes
---
diff --git a/STAGE1-gcc b/STAGE1-gcc
new file mode 100644
index 0000000..cc10f06
--- /dev/null
+++ b/STAGE1-gcc
@@ -0,0 +1,14 @@
+srpm gcc
+mcd $BUILDDIR/gcc
+
+# prefill gcc cache
+echo 'lt_cv_shlibpath_overrides_runpath=no' > config.cache
+echo 'gcc_cv_libc_provides_ssp=yes' >> config.cache
+
+$SRC/gcc-*/configure $GCC_CONFIGARGS --with-headers=$ROOTFS/usr/include --cache-file=config.cache
+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}/
diff --git a/STAGE1-gcc-host b/STAGE1-gcc-host
new file mode 100644
index 0000000..a9fe747
--- /dev/null
+++ b/STAGE1-gcc-host
@@ -0,0 +1,31 @@
+srpm gcc
+mcd $BUILDDIR/gcc
+
+# prefill gcc cache
+echo 'lt_cv_shlibpath_overrides_runpath=no' > config.cache
+echo 'gcc_cv_libc_provides_ssp=yes' >> config.cache
+
+if [ ! "$BUILDER_ARCH" = "$TARGET_ARCH" ]; then
+ WITH_HEADERS="--with-headers=$ROOTFS/usr/include"
+fi
+
+$SRC/gcc-*/configure $GCC_CONFIGARGS $WITH_HEADERS --cache-file=config.cache
+notparallel
+
+# Pass gcc_cv_libc_provides_ssp down, because the config.cache
+# version is not passed down to the gcc subdir.
+make $J all-host gcc_cv_libc_provides_ssp=yes
+make $J install-host gcc_cv_libc_provides_ssp=yes
+
+
+if false; then
+ mkdirp $ROOTFS/usr/lib${SUFFIX}
+ for o in crt Scrt1 crti crtbegin crtbeginS crtend crtendS crtn
+ do
+ $TARGET-gcc -nostdlib -nostartfiles -c -x c /dev/null -c -o $ROOTFS/usr/lib${SUFFIX}/$o.o
+ done
+ for so in gcc gcc_s c
+ do
+ $TARGET-gcc -nostdlib -nostartfiles -shared -x c /dev/null -o $ROOTFS/usr/lib${SUFFIX}/lib$so.so
+ done
+fi
diff --git a/STAGE1-gcc-libgcc b/STAGE1-gcc-libgcc
new file mode 100644
index 0000000..a73e524
--- /dev/null
+++ b/STAGE1-gcc-libgcc
@@ -0,0 +1,13 @@
+srpm gcc
+mcd $BUILDDIR/gcc
+
+# prefill gcc cache
+echo 'lt_cv_shlibpath_overrides_runpath=no' > config.cache
+echo 'gcc_cv_libc_provides_ssp=yes' >> config.cache
+
+$SRC/gcc-*/configure $GCC_CONFIGARGS --with-headers=$ROOTFS/usr/include --cache-file=config.cache
+notparallel
+# Pass gcc_cv_libc_provides_ssp down, because the config.cache
+# version is not passed down to the gcc subdir.
+make $J all-target-libgcc all-target-libssp gcc_cv_libc_provides_ssp=yes
+make $J install-target-libgcc install-target-libssp gcc_cv_libc_provides_ssp=yes
diff --git a/STAGE1-t-gcc b/STAGE1-t-gcc
new file mode 100644
index 0000000..fa5eaca
--- /dev/null
+++ b/STAGE1-t-gcc
@@ -0,0 +1,11 @@
+srpm gcc
+mcd $BUILDDIR/t-gcc
+$SRC/gcc-*/configure $GCC_TCONFIGARGS --enable-linker-build-id
+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}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-29 12:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-29 12:26 [rpms/gcc] rhel-f41-base: Adding STAGE1 bootstrap recipes Jaromir Capik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox