comparison sources/patches/gcc-core-libgcceh.patch @ 812:4e1e6aa7f445

Convince gcc to build/install libgcc_eh.a even for --disable-shared compilers, and tell the wrapper to expect it.
author Rob Landley <rob@landley.net>
date Sat, 22 Aug 2009 04:07:00 -0500
parents
children
comparison
equal deleted inserted replaced
811:aea72ecff868 812:4e1e6aa7f445
1 --- gcc-4.2.1/gcc/mklibgcc.in 2006-07-04 15:20:01.000000000 -0500
2 +++ gcc-core/gcc/mklibgcc.in 2009-08-21 21:51:35.000000000 -0500
3 @@ -223,8 +223,8 @@
4 if [ "$LIBUNWIND" ]; then
5 libunwind_a=$dir/libunwind.a
6 fi
7 + libgcc_eh_a=$dir/libgcc_eh.a
8 if [ "$SHLIB_LINK" ]; then
9 - libgcc_eh_a=$dir/libgcc_eh.a
10 libgcc_s_so=$dir/libgcc_s${SHLIB_EXT}
11 if [ "$LIBUNWIND" ]; then
12 libunwind_so=$dir/libunwind${SHLIB_EXT}
13 @@ -889,11 +889,11 @@
14 echo ' chmod 644' ${ldir}/libgcov.a
15 echo ' $(RANLIB_FOR_TARGET)' ${ldir}/libgcov.a
16
17 - if [ "$SHLIB_LINK" ]; then
18 echo ' $(INSTALL_DATA)' ${dir}/libgcc_eh.a ${ldir}/
19 echo ' chmod 644' ${ldir}/libgcc_eh.a
20 echo ' $(RANLIB_FOR_TARGET)' ${ldir}/libgcc_eh.a
21
22 + if [ "$SHLIB_LINK" ]; then
23 shlib_slibdir_qual=
24 os_multilib_dir=`$GCC_FOR_TARGET $flags --print-multi-os-directory`
25 if [ "$os_multilib_dir" != . ]; then