+2009-03-25 Bruno Haible <bruno@clisp.org>
+
+ Fix the handling of Windows resources in shared libraries.
+ * configure.ac: Invoke LT_LANG for 'Windows Resource'.
+
2009-01-14 Bruno Haible <bruno@clisp.org>
* configure.ac: More consistent m4 quoting.
dnl Check for build configuration.
gl_WOE32_DLL
+
LT_INIT([win32-dll])
+
+dnl Prepares the libtool configuration for handling of Windows resources, and
+dnl sets the RC variable to a program that compiles Windows resource files.
+LT_LANG([Windows Resource])
+
case "$host_os" in
# On Cygwin, without -no-undefined, a warning is emitted and only a static
# library is built.
+2009-03-25 Bruno Haible <bruno@clisp.org>
+
+ Fix the handling of Windows resources in shared libraries.
+ * Makefile.am (WOE32_LIBADD): Renamed from WOE32_LDADD. Use
+ libgettextpo.res.lo instead of libgettextpo.res.
+ (libgettextpo.res.lo): Renamed from libgettextpo.res. Use libtool
+ --tag=RC.
+
2009-01-18 Bruno Haible <bruno@clisp.org>
* gettext-po.c (po_message_comments, po_message_extracted_comments):
## Makefile for the gettext-tools/libgettextpo subdirectory of GNU gettext
-## Copyright (C) 1995-1998, 2000-2008 Free Software Foundation, Inc.
+## Copyright (C) 1995-1998, 2000-2009 Free Software Foundation, Inc.
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
# How to build libgettextpo.la.
# Don't make it depend on libgettextsrc.la or libgettextlib.la, since they
# define an uncontrolled amount of symbols.
-libgettextpo_la_LIBADD = libgnu.la $(WOE32_LDADD)
+libgettextpo_la_LIBADD = libgnu.la $(WOE32_LIBADD)
libgettextpo_la_LDFLAGS = \
-version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
-rpath $(libdir) \
# Version information according to Woe32 conventions.
EXTRA_DIST += libgettextpo.rc
if WOE32
-WOE32_LDADD = libgettextpo.res
-libgettextpo.res : $(srcdir)/libgettextpo.rc
- $(WINDRES) `$(SHELL) $(top_srcdir)/../windows/windres-options --escape $(VERSION)` -i $(srcdir)/libgettextpo.rc -o libgettextpo.res --output-format=coff
+WOE32_LIBADD = libgettextpo.res.lo
+libgettextpo.res.lo : $(srcdir)/libgettextpo.rc
+ $(LIBTOOL) --tag=RC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(RC) `$(SHELL) $(top_srcdir)/../windows/windres-options --escape $(VERSION)` -i $(srcdir)/libgettextpo.rc -o libgettextpo.res.lo --output-format=coff
MOSTLYCLEANFILES += libgettextpo.res
else
-WOE32_LDADD =
+WOE32_LIBADD =
endif
# Hide symbols that are defined by libgettextpo_la_AUXSOURCES or libgnu.la