diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-07-27 18:00:57 +0000 |
---|---|---|
committer | Mark Mitchell <mark@codesourcery.com> | 2005-07-27 18:00:57 +0000 |
commit | a19b6204a2d6f8a6a48db46630d4e5efb74e81d3 (patch) | |
tree | 6c0da286387a4ba5638482cf9e9ce22c2151598d /configure.in | |
parent | 17d4e2a2a84235bd39a6d0405e38a4969d12bfa6 (diff) | |
download | gdb-a19b6204a2d6f8a6a48db46630d4e5efb74e81d3.zip gdb-a19b6204a2d6f8a6a48db46630d4e5efb74e81d3.tar.gz gdb-a19b6204a2d6f8a6a48db46630d4e5efb74e81d3.tar.bz2 |
* config/mt-gnu (CXXFLAGS): Include SYSROOT_CFLAGS_FOR_TARGET.
* Makefile.tpl (SYSROOT_CFLAGS_FOR_TARGET): New variable.
(CFLAGS_FOR_TARGET): Use it.
(CXXFLAGS_FOR_TARGET): Likewise.
* Makefile.in: Regenerated.
* configure.in (--with-build-sysroot): New option.
* configure: Regenerated.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.in b/configure.in index d7c006c..f5877a7 100644 --- a/configure.in +++ b/configure.in @@ -1405,6 +1405,15 @@ esac copy_dirs= +AC_ARG_WITH([build-sysroot], + [ --with-build-sysroot=sysroot + use sysroot as the system root during the build], + [if test x"$withval" != x ; then + SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" + fi], + [SYSROOT_CFLAGS_FOR_TARGET=]) +AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET) + # Handle --with-headers=XXX. If the value is not "yes", the contents of # the named directory are copied to $(tooldir)/sys-include. if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then |