If I compile my source code with "-L." the dynamic library libmd5.so can be found.
gcc main.c -g -O2 -Wall -o main -L. -lmd5 -lcr
But if I leave the "-L."-option away, the linker does not find the dynamic library. How can I change that without having to invoke "-L."?
(additional info libmd5.so and libmd5.so.1.0.1 are located in /home/user/ba)