From: Bruno Haible Date: Thu, 26 Mar 2009 00:24:31 +0000 (+0000) Subject: Fix the handling of Windows resources in shared libraries. X-Git-Tag: v0.18~225 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf17ccbd142dbd776d57a7d41702990af236b513;p=thirdparty%2Fgettext.git Fix the handling of Windows resources in shared libraries. --- diff --git a/gettext-tools/ChangeLog b/gettext-tools/ChangeLog index bf900b73d..eebfcb302 100644 --- a/gettext-tools/ChangeLog +++ b/gettext-tools/ChangeLog @@ -1,3 +1,8 @@ +2009-03-25 Bruno Haible + + Fix the handling of Windows resources in shared libraries. + * configure.ac: Invoke LT_LANG for 'Windows Resource'. + 2009-01-14 Bruno Haible * configure.ac: More consistent m4 quoting. diff --git a/gettext-tools/configure.ac b/gettext-tools/configure.ac index 0faf135d6..ca0c7ebcd 100644 --- a/gettext-tools/configure.ac +++ b/gettext-tools/configure.ac @@ -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. diff --git a/gettext-tools/libgettextpo/ChangeLog b/gettext-tools/libgettextpo/ChangeLog index ae11e5f25..248f898ca 100644 --- a/gettext-tools/libgettextpo/ChangeLog +++ b/gettext-tools/libgettextpo/ChangeLog @@ -1,3 +1,11 @@ +2009-03-25 Bruno Haible + + 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 * gettext-po.c (po_message_comments, po_message_extracted_comments): diff --git a/gettext-tools/libgettextpo/Makefile.am b/gettext-tools/libgettextpo/Makefile.am index a83d9dc54..aab9722b1 100644 --- a/gettext-tools/libgettextpo/Makefile.am +++ b/gettext-tools/libgettextpo/Makefile.am @@ -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