diff options
author | Bruno Haible <bruno@clisp.org> | 2023-02-13 13:29:05 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-02-13 13:29:05 +0100 |
commit | 9dd607e86676e29232f44c36f3ee8e7a6e009fdd (patch) | |
tree | e5c973de4eb0c22de9de6b4bc73c9c702737edc1 | |
parent | 434f126a3157fae7d6a37e01c5dfe0b5d125e321 (diff) | |
download | gettext-9dd607e86676e29232f44c36f3ee8e7a6e009fdd.tar.gz |
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.
-rw-r--r-- | gettext-tools/libgettextpo/Makefile.am | 6 |
1 files changed, 3 insertions, 3 deletions
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. |