forked from Imagelibrary/binutils-gdb
* 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.
This commit is contained 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
|
||||
|
||||
Reference in New Issue
Block a user