summaryrefslogtreecommitdiffstats
path: root/debian/patches/gcc-auto-build.diff
blob: 2f2d5ab8224f30750e6af69db1b95217d8acbac5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# DP: Fix cross building a native compiler.

--- a/src/gcc/configure.ac
+++ b/src/gcc/configure.ac
@@ -2141,7 +2141,7 @@ else
 	# Clearing GMPINC is necessary to prevent host headers being
 	# used by the build compiler.  Defining GENERATOR_FILE stops
 	# system.h from including gmp.h.
-	CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
+	CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
 	CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
 	LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
 	GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \