Author: rbaker
Date: 2010-05-05 19:33:36 -0600 (Wed, 05 May 2010)
New Revision: 1582

Modified:
   branches/Onward/temporary_system/gcc_pass1.txt
Log:
Changed configure to use --disable-shared because of segfault. Added symlink to 
satisfy lgcc_eh library requirement. (This symlink command may need some 
adjusting for other architectures.)

Modified: branches/Onward/temporary_system/gcc_pass1.txt
===================================================================
--- branches/Onward/temporary_system/gcc_pass1.txt      2010-05-06 01:31:03 UTC 
(rev 1581)
+++ branches/Onward/temporary_system/gcc_pass1.txt      2010-05-06 01:33:36 UTC 
(rev 1582)
@@ -51,7 +51,7 @@
 mkdir -v obj/ &&
 cd obj/ &&
 ../configure --prefix=/tools --with-local-prefix=/tools \
-       --libexecdir=/tools/lib --enable-shared --enable-languages=c,c++ \
+       --libexecdir=/tools/lib --disable-shared --enable-languages=c,c++ \
        --disable-nls --disable-multilib --disable-libssp --disable-libgomp \
        --disable-libmudflap --disable-decimal-float \
        --without-cloog --without-ppl \
@@ -74,5 +74,15 @@
 
 make &&
 make install &&
+
+# Using --disable-shared means that the libgcc_eh.a file isn't created and 
+# installed. The Glibc package depends on this library as it uses -lgcc_eh 
+# within its build system. This dependency can be satisfied by creating a
+# symlink to libgcc.a, since that file will end up containing the objects
+# normally contained in libgcc_eh.a:
+
+ln -vs libgcc.a `$(uname -m)-pc-linux-gnu-gcc -print-libgcc-file-name | \
+    sed 's/libgcc/&_eh/'` &&
+
 ln -vs gcc /tools/bin/cc
 

-- 
http://linuxfromscratch.org/mailman/listinfo/hlfs-book
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to