OPC-UA: fix LDFLAG, missing OpenSSL's -lcrypto wxPython4
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Wed, 14 Sep 2022 14:55:13 +0200
branchwxPython4
changeset 3611 2c041d3d6ee3
parent 3610 06c6b9fd88b8
child 3612 428fb2472f43
OPC-UA: fix LDFLAG, missing OpenSSL's -lcrypto

open62541 is linked staticaly, therefore shared object dependencies have to be given explicitely.
opc_ua/client.py
--- a/opc_ua/client.py	Tue Sep 13 17:52:29 2022 +0200
+++ b/opc_ua/client.py	Wed Sep 14 14:55:13 2022 +0200
@@ -135,7 +135,7 @@
         with open(c_path, 'wb') as c_file:
             c_file.write(c_code)
 
-        LDFLAGS = [' "' + os.path.join(Open62541LibraryPath, "libopen62541.a") + '"']
+        LDFLAGS = ['"' + os.path.join(Open62541LibraryPath, "libopen62541.a") + '"', '-lcrypto']
 
         CFLAGS = ' '.join(['-I"' + path + '"' for path in Open62541IncludePaths])