Linker flags need to be in reverse order, i.e. most dependent to least dependent.