#101 Only use supported lto flags for clang toolchain
Merged 3 years ago by ignatenkobrain. Opened 3 years ago by tstellar.
rpms/ tstellar/redhat-rpm-config clang-fixes  into  master

file modified
+3 -1
@@ -328,7 +328,9 @@ 

  # to verify they have real sections/symbols after LTO stripping.  That

  # way we can detect installing an unusable .o/.a file.  This is on the TODO

  # list for F34.

- %_lto_cflags             -flto -ffat-lto-objects

+ %_gcc_lto_cflags	-flto -ffat-lto-objects

+ %_clang_lto_cflags	-flto

+ %_lto_cflags		%{expand:%%{_%{toolchain}_lto_cflags}}

  

  %_general_options       -O2 %{?_lto_cflags} -fexceptions -g -grecord-gcc-switches -pipe

  %_warning_options       -Wall -Werror=format-security

file modified
+4 -1
@@ -6,7 +6,7 @@ 

  

  Summary: Red Hat specific rpm configuration files

  Name: redhat-rpm-config

- Version: 164

+ Version: 165

  Release: 1%{?dist}

  # No version specified.

  License: GPL+
@@ -211,6 +211,9 @@ 

  %{_rpmconfigdir}/macros.d/macros.kmp

  

  %changelog

+ * Tue Jul 28 2020 Tom Stellard <tstellar@redhat.com> - 165-1

+ - Only use supported lto flags for clang toolchain

+ 

  * Thu Jul 23 2020 Lumír Balhar <lbalhar@redhat.com> - 164-1

  - Disable Python hash seed randomization in brp-python-bytecompile

  

no initial comment

Pull-Request has been merged by ignatenkobrain

3 years ago
Metadata