From bb5b36d069344da02c147bd794b0733bfa67503c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 15 Feb 2011 12:15:02 +0100 Subject: [PATCH] Fix compilation of `c-tokenize.c' in a cross-compile setup. * libguile/Makefile.am (c-tokenize.$(OBJEXT)): When cross-compiling, don't include any CPPFLAGS since we could end up seeing Gnulib's replacements, e.g., `rpl_malloc', which we can't use. --- libguile/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libguile/Makefile.am b/libguile/Makefile.am index ea989645b..20c179520 100644 --- a/libguile/Makefile.am +++ b/libguile/Makefile.am @@ -90,7 +90,7 @@ guile_filter_doc_snarfage_SOURCES = c-tokenize.c c-tokenize.$(OBJEXT): c-tokenize.c $(AM_V_GEN) \ if [ "$(cross_compiling)" = "yes" ]; then \ - $(CC_FOR_BUILD) $(DEFS) $(AM_CPPFLAGS) -c -o $@ $<; \ + $(CC_FOR_BUILD) -c -o $@ $<; \ else \ $(COMPILE) -c -o $@ $<; \ fi