I am trying to build by source using the static version of the test library. I have both libtest.a and libtest.so available, so I am using the "-static" option. However, It looks like the gcc linker is also trying to search for static version the standard math library. Any idea what option I can use to link the shared versions of the standard libraries?
g++ -static main.cpp -o a.out -L. -ltest
Error:
/usr/bin/ld: cannot find -lm