|
|
@ -631,6 +631,7 @@ build_tooldir |
|
|
tooldir |
|
|
tooldir |
|
|
GCC_SHLIB_SUBDIR |
|
|
GCC_SHLIB_SUBDIR |
|
|
RPATH_ENVVAR |
|
|
RPATH_ENVVAR |
|
|
|
|
|
BUILD_CONFIG |
|
|
CXXFLAGS_FOR_TARGET |
|
|
CXXFLAGS_FOR_TARGET |
|
|
CFLAGS_FOR_TARGET |
|
|
CFLAGS_FOR_TARGET |
|
|
DEBUG_PREFIX_CFLAGS_FOR_TARGET |
|
|
DEBUG_PREFIX_CFLAGS_FOR_TARGET |
|
|
@ -768,6 +769,7 @@ enable_objc_gc |
|
|
with_build_sysroot |
|
|
with_build_sysroot |
|
|
with_debug_prefix_map |
|
|
with_debug_prefix_map |
|
|
enable_bootstrap |
|
|
enable_bootstrap |
|
|
|
|
|
with_build_config |
|
|
enable_serial_configure |
|
|
enable_serial_configure |
|
|
with_build_time_tools |
|
|
with_build_time_tools |
|
|
enable_maintainer_mode |
|
|
enable_maintainer_mode |
|
|
@ -1497,6 +1499,8 @@ Optional Packages: |
|
|
use sysroot as the system root during the build |
|
|
use sysroot as the system root during the build |
|
|
--with-debug-prefix-map='A=B C=D ...' |
|
|
--with-debug-prefix-map='A=B C=D ...' |
|
|
map A to B, C to D ... in debug information |
|
|
map A to B, C to D ... in debug information |
|
|
|
|
|
--with-build-config='NAME NAME2...' |
|
|
|
|
|
Use config/NAME.mk build configuration |
|
|
--with-build-time-tools=PATH |
|
|
--with-build-time-tools=PATH |
|
|
use given path to find target tools during the build |
|
|
use given path to find target tools during the build |
|
|
|
|
|
|
|
|
@ -6569,13 +6573,53 @@ $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} |
|
|
esac |
|
|
esac |
|
|
|
|
|
|
|
|
# Adjust the toplevel makefile according to whether bootstrap was selected. |
|
|
# Adjust the toplevel makefile according to whether bootstrap was selected. |
|
|
case "$enable_bootstrap" in |
|
|
case $enable_bootstrap in |
|
|
yes) |
|
|
yes) |
|
|
bootstrap_suffix=bootstrap ;; |
|
|
bootstrap_suffix=bootstrap |
|
|
|
|
|
BUILD_CONFIG=bootstrap-debug |
|
|
|
|
|
;; |
|
|
no) |
|
|
no) |
|
|
bootstrap_suffix=no-bootstrap ;; |
|
|
bootstrap_suffix=no-bootstrap |
|
|
|
|
|
BUILD_CONFIG= |
|
|
|
|
|
;; |
|
|
esac |
|
|
esac |
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 |
|
|
|
|
|
$as_echo_n "checking for default BUILD_CONFIG... " >&6; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --with-build-config was given. |
|
|
|
|
|
if test "${with_build_config+set}" = set; then : |
|
|
|
|
|
withval=$with_build_config; case $with_build_config in |
|
|
|
|
|
yes) with_build_config= ;; |
|
|
|
|
|
no) with_build_config= BUILD_CONFIG= ;; |
|
|
|
|
|
esac |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test "x${with_build_config}" != x; then |
|
|
|
|
|
BUILD_CONFIG=$with_build_config |
|
|
|
|
|
else |
|
|
|
|
|
case $BUILD_CONFIG in |
|
|
|
|
|
bootstrap-debug) |
|
|
|
|
|
if echo "int f (void) { return 0; }" > conftest.c && |
|
|
|
|
|
${CC} -c conftest.c && |
|
|
|
|
|
mv conftest.o conftest.o.g0 && |
|
|
|
|
|
${CC} -c -g conftest.c && |
|
|
|
|
|
mv conftest.o conftest.o.g && |
|
|
|
|
|
${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g; then |
|
|
|
|
|
: |
|
|
|
|
|
else |
|
|
|
|
|
BUILD_CONFIG= |
|
|
|
|
|
fi |
|
|
|
|
|
rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g |
|
|
|
|
|
;; |
|
|
|
|
|
esac |
|
|
|
|
|
fi |
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 |
|
|
|
|
|
$as_echo "$BUILD_CONFIG" >&6; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for module in ${build_configdirs} ; do |
|
|
for module in ${build_configdirs} ; do |
|
|
if test -z "${no_recursion}" \ |
|
|
if test -z "${no_recursion}" \ |
|
|
&& test -f ${build_subdir}/${module}/Makefile; then |
|
|
&& test -f ${build_subdir}/${module}/Makefile; then |
|
|
|