aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2005-07-26 15:56:56 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2005-07-26 15:56:56 +0000
commit526635cb4b12c94cda663ae1ba5634e781b654c7 (patch)
tree0284f0554e4dd176bea11df5e10b97ef13c79945 /configure.in
parentc14ff86e9ca385d8e62bbecac8ebd439171e5ced (diff)
downloadgcc-526635cb4b12c94cda663ae1ba5634e781b654c7.zip
gcc-526635cb4b12c94cda663ae1ba5634e781b654c7.tar.gz
gcc-526635cb4b12c94cda663ae1ba5634e781b654c7.tar.bz2
install.texi (--with-build-sysroot): Fix grammatical error.
* doc/install.texi (--with-build-sysroot): Fix grammatical error. Clarify use of "build" in name. * 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. From-SVN: r102389
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in9
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