File: gcc-auto-build.diff

package info (click to toggle)
gcc-4.9 4.9.2-10%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 78,296 kB
  • sloc: makefile: 1,979; python: 870; sh: 801; perl: 165; awk: 23; cpp: 14
file content (15 lines) | stat: -rw-r--r-- 680 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# DP: Fix cross building a native compiler.

Index: b/src/gcc/configure.ac
===================================================================
--- a/src/gcc/configure.ac
+++ b/src/gcc/configure.ac
@@ -1536,7 +1536,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} -DGENERATOR_FILE" \