From a7563c9ecaba8ca0b813b8f185b5c20881565f5f Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 30 Dec 2011 22:44:44 -0500 Subject: Fix linker errors when building EGLIBC. We built the cross-compiling GCC without a Stack Smashing Protector (SSP) by passing the option '--disable-libssp' to its configure script because otherwise we'd get a configure error when building GCC (as mentioned in section 5.5.1 of Linux From Scratch version 7.0 and experienced first-hand by this author). However, EGLIBC's configure script incorrectly detects support for SSP and prepares EGLIBC to be linked with SSP symbols. As a result, NSCD (EGLIBC's Name Service Cache Daemon) fails to link due to undefined references to symbol '__stack_chk_guard'. So, we need to pass 'libc_cv_ssp=no' to EGLIBC's configure script to tell it explicitly that we don't have SSP support in our build of GCC. --- (limited to 'bootstrap-system-build-procedure.txt') diff --git a/bootstrap-system-build-procedure.txt b/bootstrap-system-build-procedure.txt index 2c5f789..b21cdd2 100644 --- a/bootstrap-system-build-procedure.txt +++ b/bootstrap-system-build-procedure.txt @@ -120,6 +120,6 @@ Configure and build a cross-compiling EGLIBC. $ ../eglibc-2.14/libc/configure --prefix=/tools/usr --host=${BBLL_TARGET} \ > --build=$(../eglibc-2.14/libc/scripts/config.guess) --disable-profile \ > --enable-add-ons --enable-kernel=3.1.6 --with-headers=/tools/usr/include \ - > libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes + > libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes libc_cv_ssp=no $ make -j 4 $ make install -- cgit v0.9.1