X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=configure;h=d8afdf2b4d761a13c7e6dd0497cc80f5fc83559c;hb=88a94849aabddaf4e6d1d2f4f2e64a5eab811430;hp=3d4545102f6b439738b2da729065403d9221c944;hpb=1576798ef8ee3053eb00b22fef8af50c41696d51;p=deliverable%2Fbinutils-gdb.git diff --git a/configure b/configure index 3d4545102f..d8afdf2b4d 100755 --- a/configure +++ b/configure @@ -5876,9 +5876,11 @@ esac # Allow the user to override the flags for # our build compiler if desired. -CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} -CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CFLAGS}} -LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${CFLAGS}} +if test x"${build}" = x"${host}" ; then + CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} + CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} + LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} +fi # On Canadian crosses, we'll be searching the right directories for # the previously-installed cross compiler, so don't bother to add