summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org>2019-02-18 18:43:32 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2019-02-18 18:52:12 (GMT)
commit1498bd570eb001a6b2bc3f1a5074e8b384d6db30 (patch) (side-by-side diff)
tree9d299556e15617c3920d397e5012e1c096e353f0
parent9097d5294cf62c4cb7cd5e352e1d0c42d3c04d81 (diff)
downloadgrecs-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.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--am/grecs.m41
-rw-r--r--tests/Makefile.am2
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
@@ -204,6 +204,7 @@ AC_DEFUN([GRECS_SETUP],[
AC_SUBST([GRECS_README])
AC_SUBST([GRECS_INCLUDES],['-I$(top_srcdir)/]grecsdir[include] [-I$(top_builddir)/]grecsdir[include]')
AC_SUBST([GRECS_HOST_PROJECT_INCLUDES])
+ AC_SUBST([GRECS_HOST_PROJECT_LDADD])
AC_SUBST([GRECS_DISTDOC])
AC_SUBST([GRECS_INCLUDE_DIR],['$(pkgincludedir)'])
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 65f590a..292619d 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -162,7 +162,7 @@ if GRECS_COND_JSON
noinst_PROGRAMS += json
endif
-LDADD = @GRECS_LDADD@ $(LIBINTL)
+LDADD = @GRECS_LDADD@ $(LIBINTL) @GRECS_HOST_PROJECT_LDADD@
AM_CPPFLAGS = @GRECS_INCLUDES@ @GRECS_HOST_PROJECT_INCLUDES@

Return to:

Send suggestions and report system problems to the System administrator.