diff --git a/Makefile.am b/Makefile.am index 33d1704..93bd793 100644 --- a/Makefile.am +++ b/Makefile.am @@ -37,12 +37,13 @@ endif libserialport_la_LIBADD = $(LIBOBJS) +libserialport_la_LDFLAGS = $(SP_LIB_LDFLAGS) + if WIN32 libserialport_la_LIBADD += -lsetupapi +libserialport_la_LDFLAGS += -no-undefined endif -libserialport_la_LDFLAGS = $(SP_LIB_LDFLAGS) - library_includedir = $(includedir) library_include_HEADERS = libserialport.h