]> git.wh0rd.org - patches.git/blame - binutils-for-build.patch
sync vapier-m
[patches.git] / binutils-for-build.patch
CommitLineData
5e993f12 12007-10-06 Mike Frysinger <vapier@gentoo.org>
2
3 * configure.ac (CFLAGS_FOR_BUILD, CXXFLAGS_FOR_BUILD,
4 LDFLAGS_FOR_BUILD): Default them to host flags only for $host = $build.
5 Set default CXXFLAGS_FOR_BUILD to CXXFLAGS, not CFLAGS. Set default
6 LDFLAGS_FOR_BUILD to LDFLAGS, not CFLAGS.
7 * configure: Regenerate.
8
9--- configure.ac 1 Oct 2007 07:55:47 -0000 1.30
10+++ configure.ac 6 Oct 2007 23:06:00 -0000
11@@ -2387,9 +2387,11 @@ esac
12
13 # Allow the user to override the flags for
14 # our build compiler if desired.
15-CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
16-CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CFLAGS}}
17-LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${CFLAGS}}
18+if test x"${build}" = x"${host}" ; then
19+ CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
20+ CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
21+ LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
22+fi
23
24 # On Canadian crosses, we'll be searching the right directories for
25 # the previously-installed cross compiler, so don't bother to add