/usr/bin/ld: cannot find -lgcc_s

error:/usr/bin/ld: cannot find -lgcc_s

 

what would do for it 

============================================================================

root@uhong:/usr/lib/gcc/i486-linux-gnu/4.3.4# locate libgcc_s.so.1
/lib/i386-linux-gnu/libgcc_s.so.1                                 ----------------->>fine the libgcc_s.so.1
/lib64/libgcc_s.so.1
/opt/cross_compile/4.2.2-eabi/usr/arm-unknown-linux-gnueabi/lib/libgcc_s.so.1
/opt/cross_compile/usr/local/arm/arm-none-linux-gnueabi/arm-none-linux-gnueabi/libc/armv4t/lib/libgcc_s.so.1
/opt/cross_compile/usr/local/arm/arm-none-linux-gnueabi/arm-none-linux-gnueabi/libc/lib/libgcc_s.so.1
/opt/cross_compile/usr/local/arm/arm-none-linux-gnueabi/arm-none-linux-gnueabi/libc/thumb2/lib/libgcc_s.so.1
/root/android2.3/system/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/lib/libgcc_s.so.1
/root/android2.3/system/prebuilt/linux-x86/toolchain/i686-unknown-linux-gnu-4.2.1/lib/libgcc_s.so.1
/root/cm7/system/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/lib/libgcc_s.so.1
/root/cm7/system/prebuilt/linux-x86/toolchain/i686-unknown-linux-gnu-4.2.1/lib/libgcc_s.so.1
root@uhong:/usr/lib/gcc/i486-linux-gnu/4.3.4#
root@uhong:/usr/lib/gcc/i486-linux-gnu/4.3.4# ln -sf /lib/i386-linux-gnu/libgcc_s.so.1 /usr/lib/gcc/i486-linux-gnu/4.3.4/libgcc_s.so
root@uhong:/usr/lib/gcc/i486-linux-gnu/4.3.4# cd /root/cm7/msm/
root@uhong:~/cm7/msm# make menuconfig
scripts/kconfig/mconf arch/x86/Kconfig


*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.

root@uhong:~/cm7/msm#

你可能感兴趣的:(android,实践记录)