public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gcc] rhel-f41-base: 14.0.1-0.17
@ 2026-06-29 12:30 Marek Polacek
  0 siblings, 0 replies; only message in thread
From: Marek Polacek @ 2026-06-29 12:30 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/gcc
            Branch : rhel-f41-base
            Commit : 20746dd85fbe810c19ef7e6dea76d3a110bb4a4d
            Author : Marek Polacek <polacek@redhat.com>
            Date   : 2024-05-03T14:49:35-04:00
            Stats  : +10/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/gcc/c/20746dd85fbe810c19ef7e6dea76d3a110bb4a4d?branch=rhel-f41-base

            Log:
            14.0.1-0.17

Enable hardening and configure with --enable-host-pie --enable-host-bind-now on RHEL

---
diff --git a/gcc.spec b/gcc.spec
index 1e20d45..3a3ec20 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -8,9 +8,11 @@
 %global nvptx_tools_gitrev 9962793f41e016318dc5eca07ae602041cf526ff
 %global newlib_cygwin_gitrev d45261f62a15f8abd94a1031020b9a9f455e4eed
 %global _unpackaged_files_terminate_build 0
+%if 0%{?fedora:1}
 %global _performance_build 1
 # Hardening slows the compiler way too much.
 %undefine _hardened_build
+%endif
 %undefine _auto_set_build_flags
 %if 0%{?fedora} > 27 || 0%{?rhel} > 7
 # Until annobin is fixed (#1519165).
@@ -141,7 +143,7 @@
 Summary: Various compilers (C, C++, Objective-C, ...)
 Name: gcc
 Version: %{gcc_version}
-Release: %{gcc_release}.16%{?dist}
+Release: %{gcc_release}.17%{?dist}
 # License notes for some of the less obvious ones:
 #   gcc/doc/cppinternals.texi: Linux-man-pages-copyleft-2-para
 #   isl: MIT, BSD-2-Clause
@@ -1271,6 +1273,9 @@ CONFIGURE_OPTS="\
 	--with-build-config=bootstrap-lto --enable-link-serialization=1 \
 %endif
 %endif
+%if 0%{?rhel:1}
+	--enable-host-pie --enable-host-bind-now \
+%endif
 	"
 
 CC="$CC" CXX="$CXX" CFLAGS="$OPT_FLAGS" \
@@ -3623,6 +3628,10 @@ end
 %endif
 
 %changelog
+* Fri May  3 2024 Marek Polacek <polacek@redhat.com> 14.0.1-0.17
+- enable hardening and configure with --enable-host-pie --enable-host-bind-now
+  on RHEL
+
 * Tue Apr 30 2024 Jakub Jelinek <jakub@redhat.com> 14.0.1-0.16
 - update from trunk and releases/gcc-14 branch
   - GCC 14.1.0-rc1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-29 12:30 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:30 [rpms/gcc] rhel-f41-base: 14.0.1-0.17 Marek Polacek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox