[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 05/08: build: Fix cross-compilation in out-of-tree-build
From: |
Ludovic Courtès |
Subject: |
[Guile-commits] 05/08: build: Fix cross-compilation in out-of-tree-builds |
Date: |
Mon, 6 May 2024 05:59:20 -0400 (EDT) |
civodul pushed a commit to branch main
in repository guile.
commit 57a889b7282dab303c4cdc49cccbbe22f961bd1c
Author: Jonas Hahnfeld <hahnjo@hahnjo.de>
AuthorDate: Thu Feb 22 22:10:06 2024 +0100
build: Fix cross-compilation in out-of-tree-builds
gen-scmconfig.h is generated in libguile, not $(top_builddir).
* libguile/Makefile.am: Add '-I.' when compiling gen-scmconfig.o.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
libguile/Makefile.am | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/libguile/Makefile.am b/libguile/Makefile.am
index 2641e7f69..f5d43cc01 100644
--- a/libguile/Makefile.am
+++ b/libguile/Makefile.am
@@ -62,14 +62,15 @@ gen_scmconfig_SOURCES = gen-scmconfig.c
## Override default rule; this should be compiled for BUILD host. Note
## that we don't add $(AM_CPPFLAGS) here, as we need to run this
## program, but $(top_srcdir)/lib has a gnulib configured for the
-## target. Instead we manually add $(top_builddir), in order to pick up
-## the generated config.h and gen-scmconfig.h. Nothing else from Guile
-## is included by this code generator.
+## target. Instead we manually add $(top_builddir) and the current
+## directory, in order to pick up the generated config.h and
+## gen-scmconfig.h. Nothing else from Guile is included by this code
+## generator.
gen-scmconfig.$(OBJEXT): gen-scmconfig.c
$(AM_V_GEN) \
if [ "$(cross_compiling)" = "yes" ]; then \
$(CC_FOR_BUILD) $(DEFS) $(DEFAULT_INCLUDES) -I$(top_builddir) \
- -c -o $@ $<; \
+ -I. -c -o $@ $<; \
else \
$(COMPILE) -c -o $@ $<; \
fi
- [Guile-commits] branch main updated (3b76a30e3 -> f36342f9a), Ludovic Courtès, 2024/05/06
- [Guile-commits] 01/08: ‘system*’ no longer changes SIGINT and SIGQUIT handlers., Ludovic Courtès, 2024/05/06
- [Guile-commits] 02/08: Update NEWS., Ludovic Courtès, 2024/05/06
- [Guile-commits] 05/08: build: Fix cross-compilation in out-of-tree-builds,
Ludovic Courtès <=
- [Guile-commits] 03/08: Fix typos throughout codebase., Ludovic Courtès, 2024/05/06
- [Guile-commits] 04/08: build: Make sed invocation fully portable, Ludovic Courtès, 2024/05/06
- [Guile-commits] 06/08: Fix error messages containing format strings, Ludovic Courtès, 2024/05/06
- [Guile-commits] 07/08: Second argument of ‘unread-string’ is optional., Ludovic Courtès, 2024/05/06
- [Guile-commits] 08/08: guix: Use non-deprecated package name., Ludovic Courtès, 2024/05/06