Added build flag for libmodbus_src on custom

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 commit is contained in:
Jan Jasper de Kroon 2018-12-04 20:56:08 +01:00 committed by GitHub
parent 4e04d07c2e
commit 251d9fe0ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -532,7 +532,7 @@ elif [ "$1" == "custom" ]; then
echo "[LIBMODBUS]"
cd utils/libmodbus_src
./autogen.sh
./configure
./configure --prefix=/usr
sudo make install
if [ $? -ne 0 ]; then
echo "Error installing Libmodbus"