Use static library for Modbus
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Mon, 20 Aug 2018 15:17:24 +0300
changeset 2291 d1359cbfa28a
parent 2290 52afa2dec4fb
child 2292 7c34d6f9d59b
Use static library for Modbus

It makes easier deployment of projects with Modbus (similar to BACnet implementation)
modbus/modbus.py
--- a/modbus/modbus.py	Thu Aug 16 16:29:06 2018 +0300
+++ b/modbus/modbus.py	Mon Aug 20 15:17:24 2018 +0300
@@ -788,7 +788,7 @@
 
         LDFLAGS = []
         LDFLAGS.append(" \"-L" + ModbusPath + "\"")
-        LDFLAGS.append(" -lmb ")
+        LDFLAGS.append(os.path.join(ModbusPath, "libmb.a"))
         LDFLAGS.append(" \"-Wl,-rpath," + ModbusPath + "\"")
         # LDFLAGS.append("\"" + os.path.join(ModbusPath, "mb_slave_and_master.o") + "\"")
         # LDFLAGS.append("\"" + os.path.join(ModbusPath, "mb_slave.o") + "\"")