blob: 8c2cf0329a0c0cad7e4c2047bd74c7e71a5c691b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
only default CFLAGS_FOR_BUILD to host CFLAGS when build and host are the same
http://bugs.gentoo.org/192959
---
configure | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Index: binutils-2.18/configure
===================================================================
--- binutils-2.18.orig/configure
+++ binutils-2.18/configure
@@ -5778,7 +5778,9 @@ esac
# Allow the user to override the flags for
# our build compiler if desired.
-CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
+if test x"${build}" = x"${host}" ; then
+ CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
+fi
# On Canadian crosses, we'll be searching the right directories for
# the previously-installed cross compiler, so don't bother to add
|