Another incorrect 'Link' section is the one in the 'regex' module:
- It needs to inherit the link directive from the 'lock' module.
  This is needed on AIX 7 (and probably on HP-UX 11.11, see the
  earlier report [1][2]).
- It also needs a reference to libintl. (Reported in [3].)

Paul's patch in response to [1][2] fixed the regex-tests module.
The $(LIB_PTHREAD) addition, however, is redundant: None of the
dependencies of the 'regex-tests' module sets a LIB_PTHREAD variable;
therefore this reference expands to empty.


2019-01-04  Bruno Haible  <>

        Fix incorrect 'Link' sections.
        * modules/regex (Link): Mention the link requirement of module 'lock'.
        * modules/regex-tests ( Don't use LIB_PTHREAD.

diff --git a/modules/regex b/modules/regex
index 278510c..7f50916 100644
--- a/modules/regex
+++ b/modules/regex
@@ -48,6 +48,7 @@ Include:
+$(LTLIBTHREAD) when linking with libtool, $(LIBTHREAD) otherwise
 $(LTLIBINTL) when linking with libtool, $(LIBINTL) otherwise
diff --git a/modules/regex-tests b/modules/regex-tests
index 30ca5fd..0782303 100644
--- a/modules/regex-tests
+++ b/modules/regex-tests
@@ -11,4 +11,4 @@
 TESTS += test-regex
 check_PROGRAMS += test-regex

Reply via email to