Commit cf6c6eb
committed
net-snmp: link client_intf.so against our custom-built OpenSSL
The Python extension (client_intf.so) was linking against system
libcrypto.so.1.1. Two-part fix:
1. Add @openssl to deps and pass --with-openssl=$$EXT_BUILD_DEPS/openssl
so net-snmp's configure uses our OpenSSL for the main library build.
2. Pass LDFLAGS="-L$$EXT_BUILD_DEPS/openssl/lib" when invoking setup.py
in the postfix_script. The setup.py reads library names from
net-snmp-config --libs but only net-snmp's own build dir ends up in
library_dirs — OpenSSL's lib dir is silently dropped. The LDFLAGS
env var ensures the linker finds our libcrypto.so.3 first.
CMK-33658
Change-Id: Id56c3ea5ba037c246390b65a36c5db6bdc6df296
(cherry picked from commit 4899d32)
(cherry picked from commit de9fc3c)
(cherry picked from commit ded4cd9)1 parent 741ad50 commit cf6c6eb
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
89 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
| |||
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
111 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
112 | 118 | | |
113 | 119 | | |
114 | 120 | | |
| |||
0 commit comments