Skip to content

Commit d1b8d14

Browse files
committed
tools/nut-scanner/Makefile.am: link net-snmp statically on (MinGW) WIN32 builds
1 parent 6bf1e3e commit d1b8d14

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/nut-scanner/Makefile.am

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,14 @@ endif
3232
if WITH_USB
3333
libnutscan_la_CFLAGS += $(LIBUSB_CFLAGS)
3434
endif
35+
# Note: do not indent automake "if" lines
3536
if WITH_SNMP
3637
libnutscan_la_CFLAGS += $(LIBNETSNMP_CFLAGS)
37-
endif
38+
if HAVE_WINDOWS
39+
# MinGW builds of libnetsnmp are static-only, so we link it in:
40+
libnutscan_la_LIBADD += $(LIBNETSNMP_LIBS)
41+
endif HAVE_WINDOWS
42+
endif WITH_SNMP
3843
if WITH_NEON
3944
libnutscan_la_CFLAGS += $(LIBNEON_CFLAGS)
4045
endif

0 commit comments

Comments
 (0)