libtool requires the -no-undefined flag on PE platforms to create shared
libraries.
We also need to link against $(lib_INTL) or there would be link errors, since
Cygwin relies on libintl, and PE platforms imply -Wl,-as-needed,-no-undefined.
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Message-Id: <
baae5e82ce617196ab12.
1342985551@YAAKOV04>
-DCONFIG_=\"$(config_prefix)\" \
$(intl_CPPFLAGS)
libkconfig_parser_la_CFLAGS = $(AM_CFLAGS) $(kf_CFLAGS)
-libkconfig_parser_la_LDFLAGS = -release $(KCONFIGPARSER_LIB_VERSION)
+libkconfig_parser_la_LDFLAGS = -release $(KCONFIGPARSER_LIB_VERSION) -no-undefined
+libkconfig_parser_la_LIBADD = $(intl_LIBS)
kconfig_includedir = $(includedir)/kconfig
kconfig_include_HEADERS = lkc.h expr.h lkc_proto.h