From: Bruno Haible Date: Mon, 13 Feb 2023 12:29:05 +0000 (+0100) Subject: build: Fix libgettexpo linking. X-Git-Tag: v0.22~151 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9dd607e86676e29232f44c36f3ee8e7a6e009fdd;p=thirdparty%2Fgettext.git build: Fix libgettexpo linking. * 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. --- diff --git a/gettext-tools/libgettextpo/Makefile.am b/gettext-tools/libgettextpo/Makefile.am index 47ee09894..ee9ed39c4 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-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.