mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-01 04:10:18 +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:
parent
21a7ba9b7e
commit
17d4daa8bd
2 changed files with 9 additions and 12 deletions
|
@ -60,13 +60,12 @@ gen_scmconfig_SOURCES = gen-scmconfig.c
|
||||||
## the generated config.h and gen-scmconfig.h. Nothing else from Guile
|
## the generated config.h and gen-scmconfig.h. Nothing else from Guile
|
||||||
## is included by this code generator.
|
## is included by this code generator.
|
||||||
gen-scmconfig.$(OBJEXT): gen-scmconfig.c
|
gen-scmconfig.$(OBJEXT): gen-scmconfig.c
|
||||||
$(AM_V_GEN) \
|
$(AM_V_GEN) \
|
||||||
if [ "$(cross_compiling)" = "yes" ]; then \
|
if [ "$(cross_compiling)" = "yes" ]; then \
|
||||||
$(CC_FOR_BUILD) -DCROSS_COMPILING=1 $(DEFS) \
|
$(CC_FOR_BUILD) $(DEFS) $(DEFAULT_INCLUDES) -I$(top_builddir) \
|
||||||
$(DEFAULT_INCLUDES) -I$(top_builddir) \
|
-c -o $@ $<; \
|
||||||
-c -o "$@" "$<"; \
|
else \
|
||||||
else \
|
$(COMPILE) -c -o $@ $<; \
|
||||||
$(COMPILE) -c -o "$@" "$<"; \
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Override default rule; this should run on BUILD host.
|
## Override default rule; this should run on BUILD host.
|
||||||
|
|
|
@ -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
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public License
|
* 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
|
#ifdef HAVE_CONFIG_H
|
||||||
information about the host, not about the build machine. */
|
# include <config.h>
|
||||||
#ifndef CROSS_COMPILING
|
|
||||||
# include <config.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <libguile/gen-scmconfig.h>
|
#include <libguile/gen-scmconfig.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue