From: Michael B. Trausch Date: Sun, 7 Sep 2014 01:39:40 +0000 (-0400) Subject: windows: -no-undefined is required to make a DLL. X-Git-Tag: libserialport-0.1.1~99 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=da8730199a215c9ccd938202fb55ac9e3f58a0b2;p=libserialport.git windows: -no-undefined is required to make a DLL. --- 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