diff options
author | Jani Välimaa <wally@mageia.org> | 2023-12-05 18:48:25 +0200 |
---|---|---|
committer | Jani Välimaa <wally@mageia.org> | 2023-12-05 18:48:25 +0200 |
commit | e112c497ecbd7d5747a70fa7a2837f6d502584c2 (patch) | |
tree | 3f925085f27b8fbf88f1632f274758737ca8fa51 | |
parent | 69d1e430eafbabe3ba148538c28f2bf771370ab2 (diff) | |
download | rpm-setup-e112c497ecbd7d5747a70fa7a2837f6d502584c2.tar rpm-setup-e112c497ecbd7d5747a70fa7a2837f6d502584c2.tar.gz rpm-setup-e112c497ecbd7d5747a70fa7a2837f6d502584c2.tar.bz2 rpm-setup-e112c497ecbd7d5747a70fa7a2837f6d502584c2.tar.xz rpm-setup-e112c497ecbd7d5747a70fa7a2837f6d502584c2.zip |
macros: use -Wl,-z,now with -Wl,-z,relro unless _disable_ld_now is defined
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | macros.in | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -1,3 +1,4 @@ +- macros: use -Wl,-z,now with -Wl,-z,relro unless _disable_ld_now is defined - mangle script shebangs Version 2.73 - 22 November 2023, by Jani Välimaa @@ -218,7 +218,7 @@ GCONF_CONFIG_SOURCE=`%{_gconftool_bin} --get-default-source` %{_gconftool_bin} - # the flags, while intended for ld, are still passed through the gcc # compiler driver. At the beginning of %%build, the environment # variable RPM_LD_FLAGS to this value. -%build_ldflags %{?!_disable_ld_as_needed: -Wl,--as-needed}%{?!_disable_ld_no_undefined: -Wl,--no-undefined}%{?!_disable_ld_relro: -Wl,-z,relro}%{?!_disable_ld_O1: -Wl,-O1}%{?!_disable_ld_build_id: %_build_id_flags}%{?!_disable_ld_enable_new_dtags: -Wl,--enable-new-dtags} +%build_ldflags %{?!_disable_ld_as_needed: -Wl,--as-needed}%{?!_disable_ld_no_undefined: -Wl,--no-undefined}%{?!_disable_ld_relro: -Wl,-z,relro%{?!_disable_ld_now: -Wl,-z,now}}%{?!_disable_ld_O1: -Wl,-O1}%{?!_disable_ld_build_id: %_build_id_flags}%{?!_disable_ld_enable_new_dtags: -Wl,--enable-new-dtags} # For compatibility %ldflags %build_ldflags |