From a7c686093f96d3daa0b4599559fa3fea2c9056a0 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Sun, 22 Jul 2012 14:17:17 -0500 Subject: [PATCH] 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: --- libs/parser/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5