diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-02-18 20:43:32 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-02-18 20:52:12 +0200 |
commit | 1498bd570eb001a6b2bc3f1a5074e8b384d6db30 (patch) | |
tree | 9d299556e15617c3920d397e5012e1c096e353f0 | |
parent | 9097d5294cf62c4cb7cd5e352e1d0c42d3c04d81 (diff) | |
download | grecs-1498bd570eb001a6b2bc3f1a5074e8b384d6db30.tar.gz grecs-1498bd570eb001a6b2bc3f1a5074e8b384d6db30.tar.bz2 |
New substitution variable for linking with host project libraries
New variable GRECS_HOST_PROJECT_LDADD complements
GRECS_HOST_PROJECT_INCLUDES. It provides a way to link test binaries
with host project libraries. This may be useful if config.h redefines
missing or defective library functions to their replacements, which are
provided in third-party libraries, such as e.g. gnulib,
* am/grecs.m4 (GRECS_HOST_PROJECT_LDADD): New substitution variable.
* tests/Makefile.am (LDADD): Add GRECS_HOST_PROJECT_LDADD.
-rw-r--r-- | am/grecs.m4 | 1 | ||||
-rw-r--r-- | tests/Makefile.am | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/am/grecs.m4 b/am/grecs.m4 index 60244a1..33a6809 100644 --- a/am/grecs.m4 +++ b/am/grecs.m4 @@ -206,2 +206,3 @@ AC_DEFUN([GRECS_SETUP],[ AC_SUBST([GRECS_HOST_PROJECT_INCLUDES]) + AC_SUBST([GRECS_HOST_PROJECT_LDADD]) AC_SUBST([GRECS_DISTDOC]) diff --git a/tests/Makefile.am b/tests/Makefile.am index 65f590a..292619d 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -164,3 +164,3 @@ endif -LDADD = @GRECS_LDADD@ $(LIBINTL) +LDADD = @GRECS_LDADD@ $(LIBINTL) @GRECS_HOST_PROJECT_LDADD@ AM_CPPFLAGS = @GRECS_INCLUDES@ @GRECS_HOST_PROJECT_INCLUDES@ |