diff --git a/macros b/macros index a6d89de..d7ffc84 100644 --- a/macros +++ b/macros @@ -219,8 +219,8 @@ %_ld_symbols_flags %{?_ld_strict_symbol_defs:-Wl,-z,defs} # https://fedoraproject.org/wiki/Changes/RemoveExcessiveLinking -# use "%define _ld_as_needed 1" to enable. -#%_ld_as_needed 1 +# use "%undefine _ld_as_needed" to disable. +%_ld_as_needed 1 %_ld_as_needed_flags %{?_ld_as_needed:-Wl,--as-needed} %__global_compiler_flags -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches %{_hardened_cflags} %{_annotated_cflags} diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index 6fad0e6..4c1b567 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -6,7 +6,7 @@ Summary: Red Hat specific rpm configuration files Name: redhat-rpm-config -Version: 117 +Version: 118 Release: 1%{?dist} # No version specified. License: GPL+ @@ -183,6 +183,9 @@ install -p -m 755 -t %{buildroot}%{_rpmconfigdir} kmod.prov %{_rpmconfigdir}/macros.d/macros.kmp %changelog +* Wed Aug 15 2018 Igor Gnatenko - 118-1 +- Enable --as-needed by default + * Mon Jul 16 2018 Miro HronĨok - 117-1 - Mangle /bin shebnags to /usr/bin ones (#1581757)