Also, use SP_LIBS in Makefile.am.
This is build-tested using a native MinGW-w64 based toolchain
as well as a MinGW-w64 based cross-compile setup.
libserialport_la_LDFLAGS = $(SP_LIB_LDFLAGS)
if WIN32
-libserialport_la_LIBADD += -lsetupapi
+libserialport_la_LIBADD += $(SP_LIBS)
endif
libserialport_la_LDFLAGS += -no-undefined
AM_CONDITIONAL([WIN32], true)
AM_CONDITIONAL([MACOSX], false)
AM_CONDITIONAL([FREEBSD], false)
- SP_LIBS="-lsetupapi -luuid"
+ SP_LIBS="-lsetupapi"
;;
*freebsd*)
AM_CONDITIONAL([LINUX], false)