beremiz

Use static library for Modbus

2018-08-20, Andrey Skvortsov
d1359cbfa28a
Parents 52afa2dec4fb
Children 7c34d6f9d59b
Use static library for Modbus

It makes easier deployment of projects with Modbus (similar to BACnet implementation)
--- 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") + "\"")