aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-security/passwdqc/passwdqc/makefile-add-ldflags.patch
blob: 4e9659aa5836f029f6bf269f31199dac9349bcfc (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
32
33
34
35
36
37
38
39
40
Add LDFLAGS variable to Makefile so that extra linker flags can be sent via this variable.

Upstream-Status: Pending

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 Makefile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 404f036..a9b18f0 100644
--- a/Makefile
+++ b/Makefile
@@ -75,13 +75,12 @@ XGETTEXT = xgettext
 XGETTEXT_OPTS = --keyword=_ --keyword=P2_:1,1 --keyword=P3_:1,2 --language=C --add-comments
 MSGMERGE = msgmerge
 
-LDFLAGS =
 LDFLAGS_shared = $(LDFLAGS) --shared
 LDFLAGS_shared_LINUX = $(LDFLAGS) --shared
 LDFLAGS_shared_SUN = $(LDFLAGS) -G
 LDFLAGS_shared_HP = $(LDFLAGS) -b
 LDFLAGS_lib = $(LDFLAGS_shared)
-LDFLAGS_lib_LINUX = $(LDFLAGS_shared_LINUX) \
+LDFLAGS_lib_LINUX = $(LDFLAGS) $(LDFLAGS_shared_LINUX) \
 	-Wl,--soname,$(SHARED_LIB),--version-script,$(MAP_LIB)
 LDFLAGS_lib_SUN = $(LDFLAGS_shared_SUN)
 LDFLAGS_lib_HP = $(LDFLAGS_shared_HP)
@@ -90,7 +89,7 @@ LDFLAGS_lib_CYGWIN = $(LDFLAGS_shared) \
 	-Wl,--export-all-symbols \
 	-Wl,--enable-auto-import
 LDFLAGS_pam = $(LDFLAGS_shared)
-LDFLAGS_pam_LINUX = $(LDFLAGS_shared_LINUX) \
+LDFLAGS_pam_LINUX = $(LDFLAGS) $(LDFLAGS_shared_LINUX) \
 	-Wl,--version-script,$(MAP_PAM)
 LDFLAGS_pam_SUN = $(LDFLAGS_shared_SUN)
 LDFLAGS_pam_HP = $(LDFLAGS_shared_HP)
-- 
2.34.1