1 |
commit: 141f1b5254fdbb263ba1d3a5697da791f359ffc7 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 7 14:30:53 2020 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 7 14:36:12 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=141f1b52 |
7 |
|
8 |
net-misc/oidc-agent: fix LDFLAGS propagation |
9 |
|
10 |
Upstream uses three different sets of linker flags: one for |
11 |
liboidc-agent.so (declared inline), one for oidc-token (CLIENT_LFLAGS) |
12 |
and one for everything else (LFLAGS). The previous version of the |
13 |
toolchain patch only injected LDFLAGS into the latter, hence QA warnings |
14 |
for the former two. |
15 |
|
16 |
Closes: https://bugs.gentoo.org/740778 |
17 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
18 |
|
19 |
.../oidc-agent-3.3.1_makefile-toolchain-vars.patch | 18 ++++++++++++++++++ |
20 |
1 file changed, 18 insertions(+) |
21 |
|
22 |
diff --git a/net-misc/oidc-agent/files/oidc-agent-3.3.1_makefile-toolchain-vars.patch b/net-misc/oidc-agent/files/oidc-agent-3.3.1_makefile-toolchain-vars.patch |
23 |
index 0cdf44fba8c..1441cdc1319 100644 |
24 |
--- a/net-misc/oidc-agent/files/oidc-agent-3.3.1_makefile-toolchain-vars.patch |
25 |
+++ b/net-misc/oidc-agent/files/oidc-agent-3.3.1_makefile-toolchain-vars.patch |
26 |
@@ -28,3 +28,21 @@ |
27 |
endif |
28 |
ifdef HAS_CJSON |
29 |
LFLAGS += -lcjson |
30 |
+@@ -81,7 +81,7 @@ |
31 |
+ ifdef MAC_OS |
32 |
+ CLIENT_LFLAGS = -L$(APILIB) -largp -loidc-agent.$(LIBVERSION) |
33 |
+ else |
34 |
+-CLIENT_LFLAGS = -L$(APILIB) -l:$(SHARED_LIB_NAME_FULL) -lseccomp |
35 |
++CLIENT_LFLAGS = $(LDFLAGS) -L$(APILIB) -l:$(SHARED_LIB_NAME_FULL) -lseccomp |
36 |
+ endif |
37 |
+ ifdef HAS_CJSON |
38 |
+ CLIENT_LFLAGS += -lcjson |
39 |
+@@ -478,7 +478,7 @@ |
40 |
+ ifdef MAC_OS |
41 |
+ @gcc -dynamiclib -fpic -Wl, -o $@ $(PIC_OBJECTS) -lc |
42 |
+ else |
43 |
+- @gcc -shared -fpic -Wl,-soname,$(SONAME) -o $@ $(PIC_OBJECTS) -lc |
44 |
++ @gcc -shared -fpic -Wl,-soname,$(SONAME) $(LDFLAGS) -o $@ $(PIC_OBJECTS) -lc |
45 |
+ endif |
46 |
+ |
47 |
+ .PHONY: shared_lib |