On 10/17/2013 07:57 AM, net_robber wrote: > how to make it the first priority give to static, and then, in case > static does not exist it uses dynamic. Have a look at /usr/lib/libc.so on a GNU/Linux system of your choice. Here it is on mine: /* GNU ld script Use the shared library, but some functions are only in the static library, so try that secondarily. */ OUTPUT_FORMAT(elf32-i386) GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld-linux.so.2 ) ) Andrew.