Fix cross-compilation of `c-tokenize.o'.
authorLudovic Courtès <ludo@gnu.org>
Wed, 27 Feb 2013 18:25:39 +0000 (19:25 +0100)
committerLudovic Courtès <ludo@gnu.org>
Wed, 27 Feb 2013 19:40:07 +0000 (20:40 +0100)
* libguile/Makefile.am (c-tokenize.$(OBJEXT)): Pass -I$(top_builddir)
  when cross-compiling.

libguile/Makefile.am

index f020595..0a40120 100644 (file)
@@ -93,7 +93,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) -c -o $@ $<; \
+               $(CC_FOR_BUILD) -I$(top_builddir) -c -o $@ $<; \
        else \
                $(COMPILE) -c -o $@ $<; \
        fi