From: Yaakov Selkowitz Date: Sun, 22 Jul 2012 19:17:17 +0000 (-0500) Subject: parser: fix shared library build on Cygwin X-Git-Tag: v3.6.0-0~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a7c686093f96d3daa0b4599559fa3fea2c9056a0;p=kconfig-frontends parser: fix shared library build on Cygwin 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 Message-Id: --- diff --git a/libs/parser/Makefile.am b/libs/parser/Makefile.am index 7bbc2e6..9a1740c 100644 --- a/libs/parser/Makefile.am +++ b/libs/parser/Makefile.am @@ -10,7 +10,8 @@ libkconfig_parser_la_CPPFLAGS = -DROOTMENU="\"$(root_menu)\"" \ -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