|
|
@ -472,6 +472,21 @@ gcc_cross() { |
|
|
|
for x in ld-linux{,-$arch_machine}.so.2 ld.so.1 libc.so.{6,6.1} |
|
|
|
do ln -fvs $root/../../lib/$x $x ; done |
|
|
|
|
|
|
|
# glibc uses -lgcc_s with --as-needed, which fails if libgcc_s.{so,a} |
|
|
|
# is not even there. -- clifford & fake |
|
|
|
# |
|
|
|
# the shared object is not really needed. |
|
|
|
#if [ ! -e $root/$prefix/lib/${gcc_lib_dir}/libgcc_s.so ]; then |
|
|
|
# ${pkg_gcc_target}-gcc -shared -nostdlib \ |
|
|
|
# -o $root/$prefix/lib/${gcc_lib_dir}/libgcc_s.so -x c /dev/null |
|
|
|
#fi |
|
|
|
if [ ! -e $root/$prefix/lib/${gcc_lib_dir}/libgcc_s.a ]; then |
|
|
|
${pkg_gcc_target}-gcc -x c /dev/null -c -o null.o |
|
|
|
${pkg_gcc_target}-ar q null.a null.o; rm -f null.o |
|
|
|
${pkg_gcc_target}-ranlib null.a |
|
|
|
mv null.a $root/$prefix/lib/${gcc_lib_dir}/libgcc_s.a |
|
|
|
fi |
|
|
|
|
|
|
|
rm -f $root/$prefix/.lastupdate |
|
|
|
fi |
|
|
|
|
|
|
|