From a19b6204a2d6f8a6a48db46630d4e5efb74e81d3 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Wed, 27 Jul 2005 18:00:57 +0000 Subject: * 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. --- configure.in | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'configure.in') 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 -- cgit v1.1