]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix the handling of Windows resources in shared libraries.
authorBruno Haible <bruno@clisp.org>
Thu, 26 Mar 2009 00:24:31 +0000 (00:24 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:16:03 +0000 (12:16 +0200)
gettext-tools/ChangeLog
gettext-tools/configure.ac
gettext-tools/libgettextpo/ChangeLog
gettext-tools/libgettextpo/Makefile.am

index bf900b73d7e795f77121c0f42216cc3b9e911ca2..eebfcb3029b70d59e9f589041156b06bb52ce476 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 0faf135d625dc28f92d212bc4c3c341c61040dc8..ca0c7ebcd98b191e86cf3f00af23f06f4fc9b4b1 100644 (file)
@@ -88,7 +88,13 @@ gtpo_EARLY
 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.
index ae11e5f25276443bace989b0ca472f14bc4577af..248f898ca19b7e8daae3cdda2d422795dd1da8ef 100644 (file)
@@ -1,3 +1,11 @@
+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):
index a83d9dc5480d0acd490a2953e5a8056fe8f1dd1b..aab9722b144ad9d73c9bab3f7a3128dd04417e78 100644 (file)
@@ -1,5 +1,5 @@
 ## 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
@@ -95,7 +95,7 @@ LTV_AGE=4
 # 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) \
@@ -110,12 +110,12 @@ endif
 # 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