1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

Include <config.h> in gen-scmconfig even when cross-compiling.

Partially reverts 8cb0d6d7fa.

* libguile/Makefile.am (gen-scmconfig.$(OBJEXT)): Remove
  -DCROSS_COMPILING=1 from cross-compiling case.
* libguile/gen-scmconfig.c: Include <config.h> regardless of
  whether CROSS_COMPILING is defined.
This commit is contained in:
Mark H Weaver 2014-03-13 16:47:11 -04:00
parent 21a7ba9b7e
commit 17d4daa8bd
2 changed files with 9 additions and 12 deletions

View file

@ -60,13 +60,12 @@ gen_scmconfig_SOURCES = gen-scmconfig.c
## 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) -DCROSS_COMPILING=1 $(DEFS) \
$(DEFAULT_INCLUDES) -I$(top_builddir) \
-c -o "$@" "$<"; \
else \
$(COMPILE) -c -o "$@" "$<"; \
$(AM_V_GEN) \
if [ "$(cross_compiling)" = "yes" ]; then \
$(CC_FOR_BUILD) $(DEFS) $(DEFAULT_INCLUDES) -I$(top_builddir) \
-c -o $@ $<; \
else \
$(COMPILE) -c -o $@ $<; \
fi
## Override default rule; this should run on BUILD host.

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2003-2014 Free Software Foundation, Inc.
/* Copyright (C) 2003-2013 Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
@ -132,10 +132,8 @@
**********************************************************************/
/* Don't include <config.h> when cross-compiling because it contains
information about the host, not about the build machine. */
#ifndef CROSS_COMPILING
# include <config.h>
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <libguile/gen-scmconfig.h>