MQTT: (WIP) Fix OpenSSL linking.
authorEdouard Tisserant <edouard@beremiz.fr>
Wed, 10 Jul 2024 11:10:05 +0200
changeset 3985 d0c5d77a33af
parent 3984 883a85b9ebcc
child 3986 98bd0bb33ce4
MQTT: (WIP) Fix OpenSSL linking.
mqtt/client.py
--- a/mqtt/client.py	Tue Jul 09 11:46:19 2024 +0200
+++ b/mqtt/client.py	Wed Jul 10 11:10:05 2024 +0200
@@ -122,7 +122,7 @@
         with open(c_path, 'w') as c_file:
             c_file.write(c_code)
 
-        LDFLAGS = [' "' + os.path.join(PahoMqttCLibraryPath, "libpaho-mqtt3as.a") + '"', '-lcrypto']
+        LDFLAGS = [' "' + os.path.join(PahoMqttCLibraryPath, "libpaho-mqtt3cs.a") + '"', '-lssl', '-lcrypto']
 
         CFLAGS = ' '.join(['-I"' + path + '"' for path in PahoMqttCIncludePaths])