1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 20:30:28 +02:00

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.
This commit is contained in:
Ludovic Courtès 2011-02-15 12:15:02 +01:00
parent cae0945c83
commit bb5b36d069

View file

@ -90,7 +90,7 @@ guile_filter_doc_snarfage_SOURCES = c-tokenize.c
c-tokenize.$(OBJEXT): c-tokenize.c c-tokenize.$(OBJEXT): c-tokenize.c
$(AM_V_GEN) \ $(AM_V_GEN) \
if [ "$(cross_compiling)" = "yes" ]; then \ if [ "$(cross_compiling)" = "yes" ]; then \
$(CC_FOR_BUILD) $(DEFS) $(AM_CPPFLAGS) -c -o $@ $<; \ $(CC_FOR_BUILD) -c -o $@ $<; \
else \ else \
$(COMPILE) -c -o $@ $<; \ $(COMPILE) -c -o $@ $<; \
fi fi