summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2011-12-30 22:44:44 (EST)
committer P. J. McDermott <pjm@nac.net>2011-12-30 22:44:44 (EST)
commita7563c9ecaba8ca0b813b8f185b5c20881565f5f (patch)
tree37b0143b465e5d6a6872f8736d0a0c7cd1216383
parent56cd680b605a16849b980e65b6df20efe53439de (diff)
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.
-rw-r--r--bootstrap-system-build-procedure.txt2
1 files changed, 1 insertions, 1 deletions
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