gcc -s -L./lib/ -L./ar/ -ltest -Wl,-rpath,/home/jeyzu/usr/c/test/lib/ This will be used to link .o files into an executable.