blob: 182e388e18d7dd6cc88920ad1fe08ae3cec00015 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
From 210649d3a50eb862eb95caec54c52cd1513a1dda Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Date: Wed, 15 Aug 2018 07:00:14 +0200
Subject: [PATCH] Enable --as-needed by default
Conflict:adapt context
Reference:https://src.fedoraproject.org/rpms/redhat-rpm-config/c/357550f7ba4495b01399c904d389369eb0666837
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
---
macros | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/macros b/macros
index cb96614..0d54994 100644
--- a/macros
+++ b/macros
@@ -257,8 +257,8 @@
#%_ld_strict_symbol_defs 1
%_ld_symbols_flags %{?_ld_strict_symbol_defs:-Wl,-z,defs}
-# 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}
%_general_options -O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong %[ "%{toolchain}" == "clang" ? "-fgcc-compatible" : "" ]
--
2.33.0
|