Hello,

While packaging Anubis for Guix I encountered a compilation error
w.r.t. the libguile.h header.  The patch attached below fixes it:

>From c88e82cf789f990b06d29f5c054b43a96b5a6c1b Mon Sep 17 00:00:00 2001
From: Maxim Cournoyer <[email protected]>
Date: Fri, 5 Jun 2020 13:59:21 -0400
Subject: [PATCH] build: Add Guile include directory to AM_CPPFLAGS.

Otherwise the libguile.h header could not be found.

* src/Makefile.am (AM_CPPFLAGS): Add @GUILE_INCLUDES@ to the
AM_CPPFLAGS.
---
 src/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index ca4d108..d2fab1e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -99,7 +99,7 @@ BUILT_SOURCES = env.c
 
 localedir = $(datadir)/locale
 DEFS = @DEFS@ -DLOCALEDIR=\"$(localedir)\"
-AM_CPPFLAGS = @ADD_INCLUDES@ @LIBGNUTLS_INCLUDES@ -I$(top_srcdir)/lib
+AM_CPPFLAGS = @ADD_INCLUDES@ @GUILE_INCLUDES@ @LIBGNUTLS_INCLUDES@ -I$(top_srcdir)/lib
 SUFFIXES=.opt .c
 
 .opt.c:
-- 
2.26.2

Thanks!

Maxim

Reply via email to