Skip to content

Commit

Permalink
scripts/Windows/build-mingw-nut.sh + README: add libtool (libltdl) fo…
Browse files Browse the repository at this point in the history
…r nut-scanner
  • Loading branch information
jimklimov committed Jun 9, 2022
1 parent 074a250 commit ac2c8eb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 12 additions & 1 deletion scripts/Windows/README
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,16 @@ You can compile it using:
$ make
$ sudo make install

libtool (libltdl)
^^^^^^^^^^^^^^^^^

$ wget https://ftpmirror.gnu.org/libtool/libtool-2.4.6.tar.gz
$ tar xzf libtool-2.4.6.tar.gz
$ cd libtool-2.4.6
$ ./configure --prefix=$PREFIX $HOST_FLAG
$ make
$ sudo make install

libusb
^^^^^^

Expand Down Expand Up @@ -135,10 +145,11 @@ net-snmp
$ make
$ sudo make install


Other requirements
^^^^^^^^^^^^^^^^^^

libneon (xml), gd (cgi), avahi, ipmi, ssl, ltdl (nut-scanner)...
libneon (xml), gd (cgi), avahi, ipmi, ssl...

Building NUT
~~~~~~~~~~~~
Expand Down
3 changes: 2 additions & 1 deletion scripts/Windows/build-mingw-nut.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ if [ "$cmd" == "all64" ] || [ "$cmd" == "b64" ] || [ "$cmd" == "all32" ] || [ "$
(cd $INSTALL_DIR/bin && ln libupsclient*.dll ../sbin/)
# Note: lib*snmp*.dll not listed below, it is
# statically linked into binaries that use it
(cd $INSTALL_DIR/bin && cp -pf /usr/$ARCH/bin/{libgnurx,libusb}*.dll .) || true
(cd $INSTALL_DIR/bin && cp -pf /usr/$ARCH/bin/{libgnurx,libusb,libltdl}*.dll .) || true
(cd $INSTALL_DIR/bin && cp -pf /usr/$ARCH/lib/libwinpthread*.dll .) || true
cd ..
else
echo "Usage:"
Expand Down

0 comments on commit ac2c8eb

Please sign in to comment.