This is to avoid the situation of failing to build glibc with undefined references to __stack_chk_guard. Force gcc to assume that the C library it is using (which does not exist yet) has support for SSP. --- config/gcc.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config/gcc.conf b/config/gcc.conf index 9f0f273..79cca1c 100644 --- a/config/gcc.conf +++ b/config/gcc.conf @@ -69,7 +69,7 @@ if test x"${build}" != x"${target}"; then # stage1_flags are used to build the initial C compiler, which is used to compile # the C library. We disable most everything, as the second GCC build will be # able to use the C library built with the first GCC build. - stage1_flags="--disable-libssp --disable-libquadmath --disable-threads --without-headers --with-newlib --disable-libmudflap --disable-bootstrap --disable-decimal-float --disable-libgomp --disable-libatomic --disable-libsanitizer --disable-plugins --disable-libitm MAKEINFO=echo --enable-languages=c --with-sysroot=${local_builds}/sysroot-${target} --disable-shared" + stage1_flags="--disable-libssp --disable-libquadmath --disable-threads --without-headers --with-newlib --disable-libmudflap --disable-bootstrap --disable-decimal-float --disable-libgomp --disable-libatomic --disable-libsanitizer --disable-plugins --disable-libitm MAKEINFO=echo --enable-languages=c --with-sysroot=${local_builds}/sysroot-${target} --disable-shared --with-glibc-version=2.18"
# Add platform specific flags case ${target} in