diff options
author | Nick Clifton <nickc@redhat.com> | 2007-10-08 09:30:35 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2007-10-08 09:30:35 +0000 |
commit | 77961173731e8e3da656b1d339fc203a898e87db (patch) | |
tree | 84b74dbfd319358bb85e21b67da78ee7ecc7ae45 /configure | |
parent | 2fb5f81aa51b0418554f310f384c398a54892beb (diff) | |
download | newlib-77961173731e8e3da656b1d339fc203a898e87db.zip newlib-77961173731e8e3da656b1d339fc203a898e87db.tar.gz newlib-77961173731e8e3da656b1d339fc203a898e87db.tar.bz2 |
* configure.ac (CFLAGS_FOR_BUILD, CXXFLAGS_FOR_BUILD, LDFLAGS_FOR_BUILD): Default them to host flags
only for $host = $build.
Set default CXXFLAGS_FOR_BUILD to CXXFLAGS, not CFLAGS.
Set default LDFLAGS_FOR_BUILD to LDFLAGS, not CFLAGS.
* configure: Regenerate.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |