From 6692d8c13f8829ae83fae33e9fdee9172e2ac1df Mon Sep 17 00:00:00 2001 From: "Michael B. Trausch" Date: Sat, 6 Sep 2014 21:34:03 -0400 Subject: [PATCH] windows: Add -lsetupapi when building for WIN32. --- Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile.am b/Makefile.am index e65010d..33d1704 100644 --- a/Makefile.am +++ b/Makefile.am @@ -37,6 +37,10 @@ endif libserialport_la_LIBADD = $(LIBOBJS) +if WIN32 +libserialport_la_LIBADD += -lsetupapi +endif + libserialport_la_LDFLAGS = $(SP_LIB_LDFLAGS) library_includedir = $(includedir)