link order matters on linux
Not really. It is the
--no-as-neededcommand line option of ld, the GNU Linker, that affects the sensitivity of the order of object files. This flag is intended as an optimisation for linking speed.
The default linker flags vary among GNU/Linux distributions. Ubuntu and ArchLinux, for example, differ from each other in this flag.