One sequence that matters is the placement of the libraries if you specify -staticlinkage.
Basically, if you decide to statically link libraries, the libraries should be listed after your code, since GCC first scans the code for the external library dependencies and then checks the libraries for input. If you specify libraries before the code they need, GCC will scan and determine which libraries are not needed, and you will get linker errors.