During building libmodbus on (in my case Fedora 29) build process of OpenPLC fails due to some files like for instance libmodbus.so which cannot be found while the libraries are present in /usr/local/lib. Setting the build flag "--prefix=/usr" fixes OpenPLC build process for Fedora 29 and probably also other Linux distro's else than Debian
This build flag fixes building OpenPLC building on "unsupported" linux systems.
Starting the OpenPLC runtime results in:
./core/openplc: error while loading shared libraries: libasiodnp3.so: cannot open shared object file: No such file or directory
I've seen someone else also struggling with this problem as well in this forum topic:
https://openplc.discussion.community/post/running-openplc-runtime-in-arch-linux-9783271
With this commit this problem should be fixed without having to manually link to the libraries.