14 lines
592 B
Diff
14 lines
592 B
Diff
# DP: Fix cross building a native compiler.
|
|
|
|
--- a/src/gcc/configure.ac
|
|
+++ b/src/gcc/configure.ac
|
|
@@ -2163,7 +2163,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" \
|