So I ran into a problem that SFML provided from my repository didn't load an OpenGL function that I needed (namely glAlphaFunc). However, it was added in SFML's later commit, so I pulled master from github and ran cmake (Debug, shared) and make. Then I copied files from /lib from that build and moved it into my own project's directory.
The problem is that when I link those .so files, not the ones in /usr/lib then I get an "undefined reference" error for every function that should be in there. How can I fix that?
My make command is:
g++ <My project's objects> -o <executable path> -lGL -lpthread -lX11 -lxcb -lX11-xcb -lxcb-randr -lxcb-image -ludev -lfreetype -ljpeg -lopenal -lFLAC -lvorbis -LSource/Extern/SFML/Archives/libsfml-system-d.so -LSource/Extern/SFML/Archives/libsfml-window-d.so -LSource/Extern/SFML/Archives/libsfml-graphics-d.so -LSource/Extern/SFML/Archives/libsfml-network-d.so -LSource/Extern/SFML/Archives/libsfml-audio-d.so