Fix removal of: -fcommon
[massrebuild.git] / redhat-rpm-config.patch
diff --git a/redhat-rpm-config.patch b/redhat-rpm-config.patch
new file mode 100644 (file)
index 0000000..911ab20
--- /dev/null
@@ -0,0 +1,26 @@
+diff --git a/macros b/macros
+index 858cac1..b47ff0a 100644
+--- a/macros
++++ b/macros
+@@ -332,7 +332,7 @@ print(result)
+ %_clang_lto_cflags    -flto
+ %_lto_cflags          %{expand:%%{_%{toolchain}_lto_cflags}}
+-%_general_options       -O2 %{?_lto_cflags} -fexceptions -g -grecord-gcc-switches -pipe
++%_general_options       -O2 %{?_lto_cflags} -fexceptions -g -fdebug-types-section -grecord-gcc-switches -pipe
+ %_warning_options       -Wall -Werror=format-security
+ %_preprocessor_defines  -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
+diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec
+index 058a8bf..a86bb30 100644
+--- a/redhat-rpm-config.spec
++++ b/redhat-rpm-config.spec
+@@ -7,7 +7,7 @@
+ Summary: Red Hat specific rpm configuration files
+ Name: redhat-rpm-config
+ Version: 166
+-Release: 1%{?dist}
++Release: 2types%{?dist}
+ # No version specified.
+ License: GPL+
+ URL: https://src.fedoraproject.org/rpms/redhat-rpm-config