mathiask88 / node-snap7

node.js wrapper for snap7
MIT License
163 stars 59 forks source link

fix build error in FreeBSD #25

Closed iceoneye closed 7 years ago

iceoneye commented 7 years ago

FreeBSD's gyp OS value is different from Linux, so I add this OS type in binding.gyp. FreeBSD 9+ use Clang for compile by default. I tested in FreeBSD 10.3 with Clang 3.4.1, it works fine. No need to install gcc/g++/python.

mathiask88 commented 7 years ago

The flags are the same so you can just or the freebsd into the linux block.

mathiask88 commented 7 years ago

Thanks Tracy, I will release a new version within this week on npm. I must have done this for weeks :S