public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jaromir Capik <jcapik@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/gcc] rhel-f41-base: Adding STAGE1 bootstrap recipes
Date: Mon, 29 Jun 2026 12:26:49 GMT	[thread overview]
Message-ID: <178273600934.1.11208713745802389180.rpms-gcc-1a6fe020a91c@fedoraproject.org> (raw)

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}

                 reply	other threads:[~2026-06-29 12:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178273600934.1.11208713745802389180.rpms-gcc-1a6fe020a91c@fedoraproject.org \
    --to=jcapik@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox