From: Michael B. Trausch Date: Sun, 7 Sep 2014 01:34:03 +0000 (-0400) Subject: windows: Add -lsetupapi when building for WIN32. X-Git-Tag: libserialport-0.1.1~100 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6692d8c13f8829ae83fae33e9fdee9172e2ac1df;p=libserialport.git windows: Add -lsetupapi when building for WIN32. --- 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)