diff --git a/Makefile.am b/Makefile.am index 1833905..4656427 100644 --- a/Makefile.am +++ b/Makefile.am @@ -43,7 +43,7 @@ libserialport_la_LIBADD = $(LIBOBJS) libserialport_la_LDFLAGS = $(SP_LIB_LDFLAGS) if WIN32 -libserialport_la_LIBADD += -lsetupapi +libserialport_la_LIBADD += $(SP_LIBS) endif libserialport_la_LDFLAGS += -no-undefined diff --git a/configure.ac b/configure.ac index 99c43bb..6a0152f 100644 --- a/configure.ac +++ b/configure.ac @@ -101,7 +101,7 @@ mingw* | cygwin*) AM_CONDITIONAL([WIN32], true) AM_CONDITIONAL([MACOSX], false) AM_CONDITIONAL([FREEBSD], false) - SP_LIBS="-lsetupapi -luuid" + SP_LIBS="-lsetupapi" ;; *freebsd*) AM_CONDITIONAL([LINUX], false)