Please consider the following command:
gcc myfile.c -o myapp.exe -Lmydir -lmylib
mydir
inclues the following file:
`libmylib.a`
I know that by default, gcc
wants to do dyanmic linking. However, as you can see it does not find a libmylib.so
dynamic library, only a libmylib.a
static one.
Does that mean that gcc
will statically linklibmylib.a
into the result executable?