]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
build: Fix libgettexpo linking.
authorBruno Haible <bruno@clisp.org>
Mon, 13 Feb 2023 12:29:05 +0000 (13:29 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 13 Feb 2023 12:29:05 +0000 (13:29 +0100)
* gettext-tools/libgettextpo/Makefile.am: Pass $(LTLIBUNISTRING) in
libgettextpo_la_LDFLAGS, not libgettextpo_la_LIBADD. This is needed per the
documentation
https://www.gnu.org/software/automake/manual/html_node/Libtool-Flags.html, and
also for consistency with how we handle the dependencies to libintl and
libiconv.

gettext-tools/libgettextpo/Makefile.am

index 47ee09894ae77144dc656bb1efbb2bb540d3288f..ee9ed39c42a5ae423277990a148b510a6b15ebf7 100644 (file)
@@ -1,5 +1,5 @@
 ## Makefile for the gettext-tools/libgettextpo subdirectory of GNU gettext
-## Copyright (C) 1995-1998, 2000-2016, 2019-2021 Free Software Foundation, Inc.
+## Copyright (C) 1995-1998, 2000-2016, 2019-2023 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
@@ -110,11 +110,11 @@ LTV_AGE=5
 # define an uncontrolled amount of symbols.
 # Limit the exported symbols: Don't export libgettextpo_*, except do export
 # libgettextpo_version.
-libgettextpo_la_LIBADD = libgnu.la $(WOE32_LIBADD) $(LTLIBUNISTRING)
+libgettextpo_la_LIBADD = libgnu.la $(WOE32_LIBADD)
 libgettextpo_la_LDFLAGS = \
   -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
   -rpath $(libdir) \
-  @LTLIBINTL@ @LTLIBICONV@ -lc -no-undefined \
+  $(LTLIBUNISTRING) @LTLIBINTL@ @LTLIBICONV@ -lc -no-undefined \
   -export-symbols-regex '^([^l]|l[^i]|li[^b]|lib[^g]|libg[^e]|libge[^t]|libget[^t]|libgett[^e]|libgette[^x]|libgettex[^t]|libgettext[^p]|libgettextp[^o]|libgettextpo[^_]|libgettextpo_version).*'
 
 # Tell the mingw or Cygwin linker which symbols to export.