]> git.sur5r.net Git - kconfig-frontends/commitdiff
parser: fix shared library build on Cygwin
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>
Sun, 22 Jul 2012 19:17:17 +0000 (14:17 -0500)
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>
Sun, 22 Jul 2012 19:17:17 +0000 (14:17 -0500)
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>

libs/parser/Makefile.am

index 7bbc2e61d6cf5c68a5d2cf76d51db3d93a054a0d..9a1740c14d7232fe822ddfe3acd48a067a694632 100644 (file)
@@ -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