Skip to content

Commit 5d98d55

Browse files
committed
Fix nut-scanner compilation in some environments
Following the commits 5187dab (common: add some string-related functions) and e767df5 (common: consolidate some string-related functions), the build rules of nut-scanner were not updated to also use str.c. Since the libcommon.la dependency was still there, some environments managed to build cleanly, while other are failing. Update build dependencies to fix this situation
1 parent 3f16e10 commit 5d98d55

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tools/nut-scanner/Makefile.am‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ libnutscan_la_SOURCES = scan_nut.c scan_ipmi.c \
1414
scan_avahi.c scan_eaton_serial.c nutscan-serial.c \
1515
../../drivers/serial.c \
1616
../../drivers/bcmxcp_ser.c \
17-
../../common/common.c
17+
../../common/common.c ../../common/str.c
1818
libnutscan_la_LIBADD = $(NETLIBS) $(LIBLTDL_LIBS)
1919
libnutscan_la_LDFLAGS = $(SERLIBS) -version-info 1:0:0
2020
libnutscan_la_CFLAGS = -I$(top_srcdir)/clients -I$(top_srcdir)/include $(LIBLTDL_CFLAGS) -I$(top_srcdir)/drivers
2121

2222
nut_scanner_SOURCES = nut-scanner.c
2323
nut_scanner_CFLAGS = -I$(top_srcdir)/clients -I$(top_srcdir)/include
24-
nut_scanner_LDADD = libnutscan.la ../../common/libcommon.la
24+
nut_scanner_LDADD = libnutscan.la
2525

2626
if WITH_SSL
2727
libnutscan_la_CFLAGS += $(LIBSSL_CFLAGS)

0 commit comments

Comments
 (0)