[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 08/21] configure.ac, Makefile.in: Use CC_FOR_BUILD for native com
From: |
John Darrington |
Subject: |
[PATCH 08/21] configure.ac, Makefile.in: Use CC_FOR_BUILD for native compilation. |
Date: |
Sun, 12 Jan 2014 12:00:21 +0100 |
* Makefile.in: Use the variable CC_FOR_BUILD as the native compiler
configure.ac: Set a reasonable default for CC_FOR_BUILD if unset.
---
Makefile.in | 2 +-
configure.ac | 11 +++++++++++
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/Makefile.in b/Makefile.in
index 692ccc1..d6bad91 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -331,7 +331,7 @@ address@hidden@
# Define the name of the C compiler (target and host (AUX))
address@hidden@
address@hidden@
address@hidden@
# Define the name of the linker for the final link step.
# Normally this is the same as the C compiler.
diff --git a/configure.ac b/configure.ac
index d66f06a..e351afd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -107,6 +107,17 @@ AC_PROG_CC
AC_PROG_CPP
CFLAGS=$save_cflags
+dnl Put a plausible default for CC_FOR_BUILD in Makefile.in
+if test -z "$CC_FOR_BUILD"; then
+ if test "x$cross_compiling" = "xno"; then
+ CC_FOR_BUILD='$(CC)'
+ else
+ CC_FOR_BUILD=cc
+ fi
+fi
+AC_SUBST(CC_FOR_BUILD)
+
+
AC_PROG_SED
dnl See if it is GNU sed or else.
dnl - need more work to tell SED features.
--
1.7.10.4
- Cross-compilation fails for Ghostscript 09.05, John Darrington, 2014/01/03
- Re: Cross-compilation fails for Ghostscript 09.05, Didier Link, 2014/01/05
- Re: Cross-compilation fails for Ghostscript 09.05, John Darrington, 2014/01/05
- Re: Cross-compilation fails for Ghostscript 09.05, John Darrington, 2014/01/12
- [no subject], John Darrington, 2014/01/12
- [PATCH 02/21] Makefile.in (top_srcdir): New variable, John Darrington, 2014/01/12
- [PATCH 06/21] configure: Fix endianess test while cross-compiling, John Darrington, 2014/01/12
- [PATCH 07/21] Fix test for fontconfig when cross building, John Darrington, 2014/01/12
- [PATCH 09/21] Simplify the conditional inclusion of the contrib directory., John Darrington, 2014/01/12
- [PATCH 08/21] configure.ac, Makefile.in: Use CC_FOR_BUILD for native compilation.,
John Darrington <=
- [PATCH 04/21] Fix crash on startup if the configuration file is missing., John Darrington, 2014/01/12
- [PATCH 13/21] Improve reliability of freetype library (esp. wrt cross-building), John Darrington, 2014/01/12
- [PATCH 05/21] base/lib.mak: Fix broken build dependency, John Darrington, 2014/01/12
- [PATCH 10/21] Fix test for dbus when cross building, John Darrington, 2014/01/12
- [PATCH 11/21] Fix incorrect determination of host/build OS, John Darrington, 2014/01/12
- [PATCH 17/21] Avoid redundancy in package version number/string, John Darrington, 2014/01/12
- [PATCH 16/21] Remove the code running ./configure from autogen.sh - I am of the opinion, that the bootstrap process and the configuration should be kept seperate. It should be possible to bootstrap without configuring., John Darrington, 2014/01/12
- [PATCH 20/21] Remove 'exe' suffix from GS variable., John Darrington, 2014/01/12
- [PATCH 21/21] Do install contrib drivers if the --disable-contrib option was chosen., John Darrington, 2014/01/12
- [PATCH 14/21] Remove broken test for OpenJpeg library., John Darrington, 2014/01/12